Add reset_origin argument to _gdk_windowing_gc_set_clip_region

This commit is contained in:
Richard Hult 2009-01-05 15:30:34 +01:00 committed by Alexander Larsson
parent 13766991a7
commit ff9822a833

View File

@ -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