mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-01 06:00:14 +01:00
[ps] Set used level to 3 only if we use native gradients.
Set the used level after performing the checks that the native Type2/3 gradients support the pattern.
This commit is contained in:
parent
7439c45039
commit
7960fc94dc
1 changed files with 2 additions and 1 deletions
|
|
@ -1456,7 +1456,6 @@ _gradient_pattern_supported (cairo_ps_surface_t *surface,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
surface->ps_level_used = CAIRO_PS_LEVEL_3;
|
||||
extend = cairo_pattern_get_extend (pattern);
|
||||
|
||||
/* Radial gradients are currently only supported when one circle
|
||||
|
|
@ -1483,6 +1482,8 @@ _gradient_pattern_supported (cairo_ps_surface_t *surface,
|
|||
}
|
||||
}
|
||||
|
||||
surface->ps_level_used = CAIRO_PS_LEVEL_3;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue