[gnome-games] gnotravex: fix flicker when moving columns
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] gnotravex: fix flicker when moving columns
- Date: Tue, 23 Nov 2010 00:39:27 +0000 (UTC)
commit 1cc8b77ab01a87f6a5fd30c6a07788c67f3c5b95
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date: Tue Nov 23 01:39:07 2010 +0100
gnotravex: fix flicker when moving columns
gnotravex/gnotravex.c | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/gnotravex/gnotravex.c b/gnotravex/gnotravex.c
index ba4cbf9..82eb7ea 100644
--- a/gnotravex/gnotravex.c
+++ b/gnotravex/gnotravex.c
@@ -600,21 +600,12 @@ static void
redraw_left (void)
{
gint x, y;
- cairo_region_t *region;
- cairo_rectangle_int_t rect =
- { xborder, yborder, tile_size * size, tile_size * size };
-
- region = cairo_region_create_rectangle (&rect);
-
- gdk_window_begin_paint_region (gtk_widget_get_window (space), region);
for (y = 0; y < size; y++)
for (x = 0; x < size; x++)
gui_draw_surface (buffer, x, y, FALSE, NULL);
- gdk_window_end_paint (gtk_widget_get_window (space));
-
- cairo_region_destroy (region);
+ gtk_widget_queue_draw_area (space, xborder, yborder, tile_size * size, tile_size * size);
}
/* Enable or disable the game menu items that are only relevant
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]