[gtk+/client-side-windows: 196/284] Simplify do_move_region_bits_on_impl by removing unused arguments



commit de2d5f299d0fa6dc2c511fd95e9454c0ce144c9c
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Jan 27 15:42:12 2009 +0100

    Simplify do_move_region_bits_on_impl by removing unused arguments
---
 gdk/gdkwindow.c |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index b620230..6b0ac94 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -245,8 +245,6 @@ static void gdk_window_flush_outstanding_moves (GdkWindow *window);
 static void gdk_window_flush            (GdkWindow *window);
 static void gdk_window_flush_recursive  (GdkWindowObject *window);
 static void do_move_region_bits_on_impl (GdkWindowObject *private,
-					 GdkDrawable *dest,
-					 int dest_off_x, int dest_off_y,
 					 GdkRegion *region, /* In impl window coords */
 					 int dx, int dy);
 static void gdk_window_invalidate_in_parent (GdkWindowObject *private);
@@ -2457,16 +2455,16 @@ gdk_window_free_paint_stack (GdkWindow *window)
 
 static void
 do_move_region_bits_on_impl (GdkWindowObject *private,
-			     GdkDrawable *dest,
-			     int dest_off_x, int dest_off_y,
 			     GdkRegion *region, /* In impl window coords */
 			     int dx, int dy)
 {
   GdkGC *tmp_gc;
   GdkRectangle copy_rect;
+  GdkDrawable *dest;
+
+  dest = private->impl;
   
   gdk_region_get_clipbox (region, &copy_rect);
-  gdk_region_offset (region, -dest_off_x, -dest_off_y);
 
   /* We need to get data from subwindows here, because we might have
    * shaped a native window over the moving region (with bg none,
@@ -2488,7 +2486,7 @@ do_move_region_bits_on_impl (GdkWindowObject *private,
 		     tmp_gc,
 		     private->impl,
 		     copy_rect.x-dx, copy_rect.y-dy,
-		     copy_rect.x - dest_off_x, copy_rect.y - dest_off_y,
+		     copy_rect.x, copy_rect.y,
 		     copy_rect.width, copy_rect.height);
   gdk_gc_set_clip_region (tmp_gc, NULL);
 }
@@ -2573,7 +2571,6 @@ move_region_on_impl (GdkWindowObject *private,
     }
   else
     do_move_region_bits_on_impl (private,
-				 private->impl, 0,0,
 				 region, dx, dy);
     
   /* Move any old invalid regions in the copy source area by dx/dy */
@@ -2616,7 +2613,6 @@ gdk_window_flush_outstanding_moves (GdkWindow *window)
       move = l->data;
 
       do_move_region_bits_on_impl (private,
-				   private->impl, 0, 0,
 				   move->region, move->dx, move->dy);
 
       gdk_region_destroy (move->region);



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