...
This commit is contained in:
parent
2074a0d958
commit
7199c62b76
4
glfw/wl_client_side_decorations.c
vendored
4
glfw/wl_client_side_decorations.c
vendored
@ -64,8 +64,8 @@ blur_mask(uint8_t *image_data, ssize_t width, ssize_t height, ssize_t kernel_siz
|
||||
for (ssize_t k = 0; k < kernel_size; k++) {
|
||||
const ssize_t py = y + k - half;
|
||||
if (0 <= py && py < height) {
|
||||
uint8_t p = (scratch + py * width)[x];
|
||||
a += (uint8_t)(p * blur_kernel[k]);
|
||||
uint8_t *s = scratch + py * width;
|
||||
a += (uint8_t)(s[x] * blur_kernel[k]);
|
||||
}
|
||||
}
|
||||
d[x] = a;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user