From d2d6c0fb108b3991a7b9b11444338250cf788ce0 Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Thu, 2 Feb 2017 18:57:12 +0300 Subject: mate-bg: Fix solid colors --- libmate-desktop/mate-bg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c index 9a4f610..d705cef 100644 --- a/libmate-desktop/mate-bg.c +++ b/libmate-desktop/mate-bg.c @@ -805,9 +805,9 @@ draw_color_area (MateBG *bg, switch (bg->color_type) { case MATE_BG_COLOR_SOLID: /* not really a big deal to ignore the area of interest */ - pixel = (((guint) bg->primary.red * 65535) >> 8) << 24 | - (((guint) bg->primary.green * 65535) >> 8) << 24 | - (((guint) bg->primary.blue * 65535) >> 8) << 24 | + pixel = ((guint) (bg->primary.red * 0xff) << 24) | + ((guint) (bg->primary.green * 0xff) << 16) | + ((guint) (bg->primary.blue * 0xff) << 8) | (0xff); gdk_pixbuf_fill (dest, pixel); -- cgit v1.2.1