From 44ee810bd0b9cd1a3b58d9f58b2f5ccedf7c80c1 Mon Sep 17 00:00:00 2001 From: Dwight Engen Date: Wed, 23 Sep 2015 09:19:00 -0500 Subject: [PATCH] Fix color scheme preview on low bit depth displays --- 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 6532182..356a95e 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); -- 1.8.3.1