mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-03 17:30:19 +01:00
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:
commit
0b5ec0139c
1 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue