[Xfce4-commits] [xfce/xfce4-settings] 01/01: Fix color scheme preview on low bit depth displays (Xfce #12223)

noreply at xfce.org noreply at xfce.org
Sat Aug 13 16:10:25 CEST 2016


This is an automated email from the git hooks/post-receive script.

bluesabre pushed a commit to branch master
in repository xfce/xfce4-settings.

commit 683822cdb02fdbee0a33f767af3dc5caa998d2c8
Author: Dwight Engen <dwight.engen at gmail.com>
Date:   Wed Sep 23 09:19:00 2015 -0500

    Fix color scheme preview on low bit depth displays (Xfce #12223)
    
    Signed-off-by: Sean Davis <smd.seandavis at gmail.com>
---
 dialogs/appearance-settings/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dialogs/appearance-settings/main.c b/dialogs/appearance-settings/main.c
index 860669c..e3f472b 100644
--- a/dialogs/appearance-settings/main.c
+++ b/dialogs/appearance-settings/main.c
@@ -460,7 +460,8 @@ theme_create_preview (GdkColor *colors)
     gint width = 44;
     gint height = 22;
 
-    drawable = gdk_pixmap_new (NULL, width, height, 24);
+    drawable = gdk_pixmap_new (gdk_get_default_root_window(), width, height,
+                               gdk_drawable_get_depth (gdk_get_default_root_window ()));
     cr = gdk_cairo_create (drawable);
     cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list