mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 06:28:01 +02:00
win32: Fixup clip-mask fallback after API changes
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
3d1ee0e22d
commit
41190afacf
1 changed files with 4 additions and 8 deletions
|
|
@ -1566,15 +1566,11 @@ _cairo_win32_surface_show_glyphs_internal (void *surface,
|
|||
* doing this for printing */
|
||||
if (clip != NULL) {
|
||||
if ((dst->flags & CAIRO_WIN32_SURFACE_FOR_PRINTING) == 0) {
|
||||
cairo_region_t *clip_region;
|
||||
cairo_status_t status;
|
||||
if (! _cairo_clip_is_region (clip))
|
||||
return CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
|
||||
clip_region = _cairo_clip_get_region (clip);
|
||||
assert (status != CAIRO_INT_STATUS_NOTHING_TO_DO);
|
||||
if (status)
|
||||
return status;
|
||||
|
||||
_cairo_win32_surface_set_clip_region (surface, clip_region);
|
||||
_cairo_win32_surface_set_clip_region (surface,
|
||||
_cairo_clip_get_region (clip));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue