[aisleriot] Fix debugging code
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aisleriot] Fix debugging code
- Date: Tue, 19 Apr 2011 12:08:17 +0000 (UTC)
commit 7a2c12bfdf4394071419f927d4af0b4da0ab393c
Author: Christian Persch <chpe gnome org>
Date: Tue Apr 19 14:07:58 2011 +0200
Fix debugging code
src/board-noclutter.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/board-noclutter.c b/src/board-noclutter.c
index 0727226..d26010d 100644
--- a/src/board-noclutter.c
+++ b/src/board-noclutter.c
@@ -2934,18 +2934,17 @@ aisleriot_board_draw (GtkWidget *widget,
#endif /* OPTIMISED_EXPOSE */
#if 0 && defined(OPTIMISED_EXPOSE)
- {
+ if (region) {
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);
+ g_printerr ("Exposing region ");
for (i = 0; i < n_rects; ++i) {
cairo_rectangle_int_t rect;
cairo_region_get_rectangle (region, i, &rect);
- g_print ("[Rect %d:%d@(%d,%d)] ", rect.width, rect.height, rect.x, rect.y);
+ g_printerr ("[Rect %d:%d@(%d,%d)] ", rect.width, rect.height, rect.x, rect.y);
}
g_print ("\n");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]