chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d040a92
)
Patch from Mark Wooding to disable GTK's internal double buffering,
author
Simon Tatham
<anakin@pobox.com>
Sat, 29 May 2010 15:43:41 +0000
(15:43 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Sat, 29 May 2010 15:43:41 +0000
(15:43 +0000)
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]
gtk.c
patch
|
blob
|
history
diff --git
a/gtk.c
b/gtk.c
index 694a41a8de4d518b11756c99854a11b550a87b55..d551f473d3230fbdc4184b30f5971b853d83f875 100644
(file)
--- 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;