[gtk+/client-side-windows: 111/284] Add reset_origin argument to _gdk_windowing_gc_set_clip_region
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 111/284] Add reset_origin argument to _gdk_windowing_gc_set_clip_region
- Date: Thu, 2 Apr 2009 14:09:03 -0400 (EDT)
commit ff9822a83352217ccafaed369c594cbf9d44b783
Author: Richard Hult <richard imendio com>
Date: Mon Jan 5 15:30:34 2009 +0100
Add reset_origin argument to _gdk_windowing_gc_set_clip_region
---
gdk/quartz/gdkgc-quartz.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/gdk/quartz/gdkgc-quartz.c b/gdk/quartz/gdkgc-quartz.c
index ea77379..d740c79 100644
--- a/gdk/quartz/gdkgc-quartz.c
+++ b/gdk/quartz/gdkgc-quartz.c
@@ -208,7 +208,8 @@ _gdk_quartz_gc_new (GdkDrawable *drawable,
void
_gdk_windowing_gc_set_clip_region (GdkGC *gc,
- const GdkRegion *region)
+ const GdkRegion *region,
+ gboolean reset_origin)
{
GdkGCQuartz *private = GDK_GC_QUARTZ (gc);
@@ -224,8 +225,11 @@ _gdk_windowing_gc_set_clip_region (GdkGC *gc,
private->have_clip_region = region != NULL;
- gc->clip_x_origin = 0;
- gc->clip_y_origin = 0;
+ if (reset_origin)
+ {
+ gc->clip_x_origin = 0;
+ gc->clip_y_origin = 0;
+ }
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]