[gtk+/client-side-windows: 260/284] Use clearer names for GdkWindowRegionMove members
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 260/284] Use clearer names for GdkWindowRegionMove members
- Date: Thu, 2 Apr 2009 14:21:57 -0400 (EDT)
commit 3866ea0539e5e2249022896395421b2c3c8c62ca
Author: Alexander Larsson <alexl redhat com>
Date: Sun Feb 8 13:13:56 2009 +0100
Use clearer names for GdkWindowRegionMove members
---
gdk/gdkwindow.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index ad348fa..66c5b5d 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -75,8 +75,8 @@ struct _GdkWindowPaint
};
typedef struct {
- GdkRegion *region; /* The destination region */
- int dx, dy;
+ GdkRegion *dest_region; /* The destination region */
+ int dx, dy; /* The amount that the source was moved to reach dest_region */
} GdkWindowRegionMove;
@@ -2228,14 +2228,14 @@ gdk_window_begin_paint_region (GdkWindow *window,
{
move = l->data;
/* Don't need this area */
- gdk_region_subtract (move->region, remove);
+ gdk_region_subtract (move->dest_region, remove);
/* However if any of the destination we do need has a source
in the updated region we do need that as a destination for
the earlier moves */
- gdk_region_offset (move->region, -move->dx, -move->dy);
- gdk_region_subtract (remove, move->region);
- gdk_region_offset (move->region, move->dx, move->dy);
+ gdk_region_offset (move->dest_region, -move->dx, -move->dy);
+ gdk_region_subtract (remove, move->dest_region);
+ gdk_region_offset (move->dest_region, move->dx, move->dy);
}
gdk_region_destroy (remove);
}
@@ -2545,7 +2545,7 @@ append_move_region (GdkWindowObject *impl_window,
GdkWindowRegionMove *move;
move = g_slice_new (GdkWindowRegionMove);
- move->region = gdk_region_copy (region);
+ move->dest_region = gdk_region_copy (region);
move->dx = dx;
move->dy = dy;
@@ -2611,9 +2611,9 @@ gdk_window_flush_outstanding_moves (GdkWindow *window)
move = l->data;
do_move_region_bits_on_impl (impl_window,
- move->region, move->dx, move->dy);
+ move->dest_region, move->dx, move->dy);
- gdk_region_destroy (move->region);
+ gdk_region_destroy (move->dest_region);
g_slice_free (GdkWindowRegionMove, move);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]