Handle backends that don't have a set_clip_region implementation (PDF).

This commit is contained in:
Kristian Høgsberg 2005-04-21 15:18:14 +00:00
parent 9c10b54e5e
commit 0f0a6a57a3
2 changed files with 8 additions and 0 deletions

View file

@ -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):

View file

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