summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2008-12-23 08:31:30 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-01-29 10:10:39 +0000
commit46acfd2e85dd6f7a73e1172d363d509c769376f2 (patch)
treeb691d96477eab5d2b7021f8d1436636bb4d32fde
parent01d20b79daf0abe0f69ccec4ecd5122c5bfe9a4e (diff)
[glitz] use image fallback if the cairo_content_t is unsupported
The agreement on the mailing list was that returning NULL is the right thing to do, and indeed the callers of _cairo_glitz_surface_create_similar are prepared to receive NULL and return CAIRO_STATUS_INT_UNSUPPORTED in that case. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/cairo-glitz-surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-glitz-surface.c b/src/cairo-glitz-surface.c
index f049f401..284198b2 100644
--- a/src/cairo-glitz-surface.c
+++ b/src/cairo-glitz-surface.c
@@ -89,7 +89,7 @@ _cairo_glitz_surface_create_similar (void *abstract_src,
glitz_find_standard_format (drawable,
_glitz_format_from_content (content));
if (!gformat)
- return _cairo_surface_create_in_error (_cairo_error (CAIRO_STATUS_NO_MEMORY));
+ return NULL;
surface = glitz_surface_create (drawable, gformat,
width <= 0 ? 1 : width,