From e96e7fbee73270e7b2bd820d1a5bee04761c3707 Mon Sep 17 00:00:00 2001 From: o9000 Date: Mon, 20 Nov 2017 14:12:26 +0100 Subject: [PATCH] Taskbar: thumbnails (fix bad copy paste) --- src/util/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/window.c b/src/util/window.c index f2d3cce..cf95c4c 100644 --- a/src/util/window.c +++ b/src/util/window.c @@ -375,8 +375,8 @@ void smooth_thumbnail(cairo_surface_t *image_surface) u_int32_t c3 = data[i + tw]; u_int32_t c4 = data[i + tw + 1]; u_int32_t b = (5 * (c1 & bmask) + 1 * (c2 & bmask) + 1 * (c3 & bmask) + 1 * (c4 & bmask)) / 8; - u_int32_t g = (5 * (c1 & gmask) + 1 * (c2 & gmask) + 1 * (c3 & gmask) + 1 * (c4 & bmask)) / 8; - u_int32_t r = (5 * (c1 & rmask) + 1 * (c2 & rmask) + 1 * (c3 & rmask) + 1 * (c4 & bmask)) / 8; + u_int32_t g = (5 * (c1 & gmask) + 1 * (c2 & gmask) + 1 * (c3 & gmask) + 1 * (c4 & gmask)) / 8; + u_int32_t r = (5 * (c1 & rmask) + 1 * (c2 & rmask) + 1 * (c3 & rmask) + 1 * (c4 & rmask)) / 8; data[i] = (r & rmask) | (g & gmask) | (b & bmask); } }