mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 12:38:02 +02:00
Handle backends that don't have a set_clip_region implementation (PDF).
This commit is contained in:
parent
9c10b54e5e
commit
0f0a6a57a3
2 changed files with 8 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2005-04-21 Kristian Høgsberg <krh@redhat.com>
|
||||
|
||||
* src/cairo-surface.c (_cairo_surface_set_clip_region): Handle
|
||||
backends that don't have a set_clip_region implementation (PDF).
|
||||
|
||||
2005-04-19 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* src/cairo.c: (cairo_paint):
|
||||
|
|
|
|||
|
|
@ -864,6 +864,9 @@ _cairo_surface_set_clip_region (cairo_surface_t *surface,
|
|||
if (surface->finished)
|
||||
return CAIRO_STATUS_SURFACE_FINISHED;
|
||||
|
||||
if (surface->backend->set_clip_region == NULL)
|
||||
return CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
|
||||
if (region) {
|
||||
box = pixman_region_extents (region);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue