aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2010-05-29 15:43:41 +0000
committerSimon Tatham <anakin@pobox.com>2010-05-29 15:43:41 +0000
commit9ce82b0feb6f19c6246198f957ed60edf2a11720 (patch)
treec7920778b166547108bebfb515db275ca946b379
parentd040a921bab05691e4ce8908387a9d5ad2d421de (diff)
downloadpuzzles-9ce82b0feb6f19c6246198f957ed60edf2a11720.zip
puzzles-9ce82b0feb6f19c6246198f957ed60edf2a11720.tar.gz
puzzles-9ce82b0feb6f19c6246198f957ed60edf2a11720.tar.bz2
puzzles-9ce82b0feb6f19c6246198f957ed60edf2a11720.tar.xz
Patch from Mark Wooding to disable GTK's internal double buffering,
which I didn't know about, but which is clearly a waste of effort since we keep our own backing pixmap for the puzzle window. [originally from svn r8960]
-rw-r--r--gtk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk.c b/gtk.c
index 694a41a..d551f47 100644
--- a/gtk.c
+++ b/gtk.c
@@ -1872,6 +1872,9 @@ static frontend *new_window(char *arg, int argtype, char **error)
fe->statusbar = NULL;
fe->area = gtk_drawing_area_new();
+#if GTK_CHECK_VERSION(2,0,0)
+ GTK_WIDGET_UNSET_FLAGS(fe->area, GTK_DOUBLE_BUFFERED);
+#endif
get_size(fe, &x, &y);
gtk_drawing_area_size(GTK_DRAWING_AREA(fe->area), x, y);
fe->w = x;