diff options
| author | Simon Tatham <anakin@pobox.com> | 2010-05-29 15:43:41 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2010-05-29 15:43:41 +0000 |
| commit | 9ce82b0feb6f19c6246198f957ed60edf2a11720 (patch) | |
| tree | c7920778b166547108bebfb515db275ca946b379 | |
| parent | d040a921bab05691e4ce8908387a9d5ad2d421de (diff) | |
| download | puzzles-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |