mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
Add reset_origin argument to _gdk_windowing_gc_set_clip_region
This commit is contained in:
parent
13766991a7
commit
ff9822a833
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user