diff options
author | Alexei Sorokin <[email protected]> | 2017-02-02 18:57:12 +0300 |
---|---|---|
committer | Alexei Sorokin <[email protected]> | 2017-02-02 18:57:12 +0300 |
commit | 9f2d24864534dd0f126ba4a18c02730a5a93e91d (patch) | |
tree | bb13640d7786b2dbfd625fce99f268d848db5f97 | |
parent | 5913c2cbe9f83d4fe163bf779b72a875bb20e271 (diff) | |
download | mate-desktop-9f2d24864534dd0f126ba4a18c02730a5a93e91d.tar.bz2 mate-desktop-9f2d24864534dd0f126ba4a18c02730a5a93e91d.tar.xz |
GTK+-3 mate-bg: Fix solid colors
-rw-r--r-- | libmate-desktop/mate-bg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c index c213354..4a0b563 100644 --- a/libmate-desktop/mate-bg.c +++ b/libmate-desktop/mate-bg.c @@ -879,9 +879,9 @@ draw_color_area (MateBG *bg, case MATE_BG_COLOR_SOLID: /* not really a big deal to ignore the area of interest */ #if GTK_CHECK_VERSION (3, 0, 0) - 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) | #else pixel = ((bg->primary.red >> 8) << 24) | ((bg->primary.green >> 8) << 16) | |