[gegl-gtk] GeglGtkView: Remove hack of always doing full redraw



commit 73f51f4d7e2a50cf9ce659e04382b0a563292aee
Author: Jon Nordby <jononor gmail com>
Date:   Mon Jun 18 23:13:37 2012 +0200

    GeglGtkView: Remove hack of always doing full redraw

 gegl-gtk/internal/view-helper.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl-gtk/internal/view-helper.c b/gegl-gtk/internal/view-helper.c
index 7f560d7..b795386 100644
--- a/gegl-gtk/internal/view-helper.c
+++ b/gegl-gtk/internal/view-helper.c
@@ -303,10 +303,10 @@ trigger_redraw(ViewHelper *self, GeglRectangle *redraw_rect)
     // FIXME: only redraw the exact area
     // coordinates are currently not correct
 
-    //if (!redraw_rect) {
+    if (!redraw_rect) {
         GeglRectangle invalid_rect = {0, 0, -1, -1}; /* Indicates full redraw */
         redraw_rect = &invalid_rect;
-    //}
+    }
 
     g_signal_emit(self, view_helper_signals[SIGNAL_REDRAW_NEEDED],
                   0, redraw_rect, NULL);



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