Merge branch 'pbounds-size' into 'master'

Ensure pbounds.size is initialized even in EXTEND_NONE mode.

See merge request cairo/cairo!363
This commit is contained in:
Adrian Johnson 2022-12-28 05:42:51 +00:00
commit 0b5ec0139c

View file

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