[gnome-games] aisleriot: Remove useless check
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] aisleriot: Remove useless check
- Date: Sun, 15 Aug 2010 21:59:55 +0000 (UTC)
commit ee2e9c2e2a301a05f50a5677815fe54d3b587bcd
Author: Christian Persch <chpe gnome org>
Date: Sun Aug 15 23:58:24 2010 +0200
aisleriot: Remove useless check
This is already covered by the is_empty() check.
aisleriot/board-noclutter.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/aisleriot/board-noclutter.c b/aisleriot/board-noclutter.c
index 849ba85..39b12bd 100644
--- a/aisleriot/board-noclutter.c
+++ b/aisleriot/board-noclutter.c
@@ -3178,7 +3178,7 @@ aisleriot_board_expose_event (GtkWidget *widget,
#else
GdkRegion *region = event->region;
#endif
- int i, n_rects;
+ int i;
GPtrArray *slots;
guint n_slots;
ArSlot **exposed_slots;
@@ -3202,20 +3202,17 @@ aisleriot_board_expose_event (GtkWidget *widget,
#if GTK_CHECK_VERSION (2, 90, 5)
if (cairo_region_is_empty (region))
return FALSE;
-
- n_rects = cairo_region_num_rectangles (region);
#else
if (gdk_region_empty (region))
return FALSE;
-
- gdk_region_get_rectangles (region, NULL, &n_rects);
#endif
- if (n_rects == 0)
- return FALSE;
-
#if 0
{
+ int n_rects;
+
+ n_rects = cairo_region_num_rectangles (region);
+
g_print ("Exposing area %d:%d@(%d,%d) ", event->area.width, event->area.height,
event->area.x, event->area.y);
for (i = 0; i < n_rects; ++i) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]