summaryrefslogtreecommitdiff
path: root/src/cairo-quartz-surface.c
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2022-12-28 05:42:51 +0000
committerAdrian Johnson <ajohnson@redneon.com>2022-12-28 05:42:51 +0000
commit0b5ec0139ce3766e6bfc98a9f366a20a4738ac4e (patch)
treea6c61d5bf7679ec9d6fa779996da0fb4a2c3bb62 /src/cairo-quartz-surface.c
parent7fa02c81f1388ae6f938050160d06186385eae8a (diff)
parent77aac45db742ed6dd5072d6296ac265ad11e496c (diff)
Merge branch 'pbounds-size' into 'master'
Ensure pbounds.size is initialized even in EXTEND_NONE mode. See merge request cairo/cairo!363
Diffstat (limited to 'src/cairo-quartz-surface.c')
-rw-r--r--src/cairo-quartz-surface.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c
index 0d4b001a4..aed2cced6 100644
--- a/src/cairo-quartz-surface.c
+++ b/src/cairo-quartz-surface.c
@@ -901,7 +901,7 @@ _cairo_quartz_cairo_repeating_surface_pattern_to_quartz (cairo_quartz_surface_t
switch (spattern->base.extend) {
case CAIRO_EXTEND_NONE:
- break;
+ case CAIRO_EXTEND_PAD:
case CAIRO_EXTEND_REPEAT:
pbounds.size.width = extents.width;
pbounds.size.height = extents.height;
@@ -911,10 +911,6 @@ _cairo_quartz_cairo_repeating_surface_pattern_to_quartz (cairo_quartz_surface_t
pbounds.size.height = 2.0 * extents.height;
info->do_reflect = TRUE;
break;
- case CAIRO_EXTEND_PAD:
- pbounds.size.width = extents.width;
- pbounds.size.height = extents.height;
- break;
}
rw = pbounds.size.width;
rh = pbounds.size.height;