[goffice] don't redraw larger than needed.



commit 672094456d6a5b71b40c8e6540e8e25e3fe48857
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sun Dec 6 11:41:49 2009 +0100

    don't redraw larger than needed.

 ChangeLog                   |    5 +++++
 goffice/canvas/goc-canvas.c |    3 ++-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f781baa..1aedcdd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-06  Jean Brefort  <jean brefort normalesup org>
+
+	* goffice/canvas/goc-canvas.c (goc_canvas_invalidate): really pass width
+	and height to gtk_widget_queue_draw_area.
+
 2009-12-05  Jean Brefort  <jean brefort normalesup org>
 
 	* goffice/canvas/goc-item.c (goc_item_bounds_changed): do not invalidate
diff --git a/goffice/canvas/goc-canvas.c b/goffice/canvas/goc-canvas.c
index 56dad6e..8baf4b5 100644
--- a/goffice/canvas/goc-canvas.c
+++ b/goffice/canvas/goc-canvas.c
@@ -440,7 +440,8 @@ goc_canvas_invalidate (GocCanvas *canvas, double x0, double y0, double x1, doubl
 	if (x1 > x0 && y1 > y0)
 		gtk_widget_queue_draw_area (GTK_WIDGET (canvas),
 					    (int) floor (x0), (int) floor (y0),
-					    (int) ceil (x1), (int) ceil (y1));
+					    (int) ceil (x1) - (int) floor (x0),
+		                            (int) ceil (y1) - (int) floor (y0));
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]