shithub: puzzles

Download patch

ref: 9ce82b0feb6f19c6246198f957ed60edf2a11720
parent: d040a921bab05691e4ce8908387a9d5ad2d421de
author: Simon Tatham <anakin@pobox.com>
date: Sat May 29 11:43:41 EDT 2010

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]

--- a/gtk.c
+++ b/gtk.c
@@ -1872,6 +1872,9 @@
 	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;