[gimp/gtk3-port: 65/246] app: pass the cairo_region_t to gdk_window_invalidate_region() directly



commit 937e4aefa934dd7672f2d7ef9aa0247bfc67d3b4
Author: Michael Natterer <mitch gimp org>
Date:   Tue Oct 19 13:16:32 2010 +0200

    app: pass the cairo_region_t to gdk_window_invalidate_region() directly

 app/display/gimpdisplayshell-expose.c |   23 -----------------------
 1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-expose.c b/app/display/gimpdisplayshell-expose.c
index 48302d6..a5054f4 100644
--- a/app/display/gimpdisplayshell-expose.c
+++ b/app/display/gimpdisplayshell-expose.c
@@ -47,31 +47,8 @@ gimp_display_shell_expose_region (GimpDisplayShell *shell,
   if (! gtk_widget_get_realized (shell->canvas))
     return;
 
-#ifdef USE_CAIRO_REGION
-  {
-    GdkRegion *gdk_region = gdk_region_new ();
-    gint       n_rectangles;
-    gint       i;
-
-    n_rectangles = cairo_region_num_rectangles (region);
-
-    for (i = 0; i < n_rectangles; i++)
-      {
-        cairo_rectangle_int_t rectangle;
-
-        cairo_region_get_rectangle (region, i, &rectangle);
-
-        gdk_region_union_with_rect (gdk_region, (GdkRectangle *) &rectangle);
-      }
-
-    gdk_window_invalidate_region (gtk_widget_get_window (shell->canvas),
-                                  gdk_region, TRUE);
-    gdk_region_destroy (gdk_region);
-  }
-#else
   gdk_window_invalidate_region (gtk_widget_get_window (shell->canvas),
                                 region, TRUE);
-#endif
 }
 
 void



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