diff options
Diffstat (limited to 'capplets/appearance/appearance-font.c')
-rw-r--r-- | capplets/appearance/appearance-font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/capplets/appearance/appearance-font.c b/capplets/appearance/appearance-font.c index 78d079e1..21d41e58 100644 --- a/capplets/appearance/appearance-font.c +++ b/capplets/appearance/appearance-font.c @@ -257,7 +257,7 @@ static void setup_font_sample(GtkWidget* darea, Antialiasing antialiasing, Hinti height = ascent + descent + 2; #if !GTK_CHECK_VERSION (3, 0, 0) - pixmap = gdk_pixmap_new (NULL, width, height, visual->depth); + pixmap = gdk_pixmap_new (NULL, width, height, gdk_visual_get_depth (visual)); #endif #if GTK_CHECK_VERSION (3, 0, 0) |