From 7199c62b764de847ce9070b2695ddf80553ee1a7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 5 Apr 2021 10:13:33 +0530 Subject: [PATCH] ... --- glfw/wl_client_side_decorations.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glfw/wl_client_side_decorations.c b/glfw/wl_client_side_decorations.c index 6905e64fb..b9af4fc09 100644 --- a/glfw/wl_client_side_decorations.c +++ b/glfw/wl_client_side_decorations.c @@ -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;