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



commit 6a660079c0b988dafecf8ce89f5423957f0b5455
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 93b0f98..e06f637 100644
--- a/app/display/gimpdisplayshell-expose.c
+++ b/app/display/gimpdisplayshell-expose.c
@@ -48,31 +48,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]