[cairo-commit] cairo/src cairo-surface.c,1.60,1.61

Kristian Hogsberg commit at pdx.freedesktop.org
Thu Apr 21 15:18:16 PDT 2005


Committed by: krh

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv15518/src

Modified Files:
	cairo-surface.c 
Log Message:
2005-04-21  Kristian Høgsberg  <krh at redhat.com>

        * src/cairo-surface.c (_cairo_surface_set_clip_region): Handle
        backends that don't have a set_clip_region implementation (PDF).



Index: cairo-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-surface.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- cairo-surface.c	19 Apr 2005 23:29:05 -0000	1.60
+++ cairo-surface.c	21 Apr 2005 22:18:14 -0000	1.61
@@ -864,6 +864,9 @@
     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);
 




More information about the cairo-commit mailing list