summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Sorokin <[email protected]>2017-02-02 18:57:12 +0300
committerAlexei Sorokin <[email protected]>2017-02-02 18:57:12 +0300
commitd2d6c0fb108b3991a7b9b11444338250cf788ce0 (patch)
tree444418afabb992dfd4993b9615fca5cafc8c64d7
parent553c0eaef8b060edf49b3d3c2e432554aee5a7f2 (diff)
downloadmate-desktop-d2d6c0fb108b3991a7b9b11444338250cf788ce0.tar.bz2
mate-desktop-d2d6c0fb108b3991a7b9b11444338250cf788ce0.tar.xz
mate-bg: Fix solid colors
-rw-r--r--libmate-desktop/mate-bg.c6
1 files 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);