summaryrefslogtreecommitdiff
path: root/src/cairo-spans.c
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2008-12-15 09:32:43 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-01-29 10:10:40 +0000
commit6394ec3048f31b867d9588853fa400c6c630c6f1 (patch)
treecc60f22408a66850bea9c3fb9924e09cee124aad /src/cairo-spans.c
parent46acfd2e85dd6f7a73e1172d363d509c769376f2 (diff)
[surface] add CAIRO_STATUS_INVALID_SIZE
Adds an error code replacing CAIRO_STATUS_NO_MEMORY in one case where it is not really appropriate. CAIRO_STATUS_INVALID_SIZE is used by several backends that do not support image sizes beyond 2^15 pixels on each side. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-spans.c')
-rw-r--r--src/cairo-spans.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-spans.c b/src/cairo-spans.c
index a30da618..b6ac2c56 100644
--- a/src/cairo-spans.c
+++ b/src/cairo-spans.c
@@ -288,6 +288,7 @@ _cairo_scan_converter_create_in_error (cairo_status_t status)
case CAIRO_STATUS_INVALID_SLANT: RETURN_NIL;
case CAIRO_STATUS_INVALID_WEIGHT: RETURN_NIL;
case CAIRO_STATUS_NO_MEMORY: RETURN_NIL;
+ case CAIRO_STATUS_INVALID_SIZE: RETURN_NIL;
default:
break;
}
@@ -391,6 +392,7 @@ _cairo_span_renderer_create_in_error (cairo_status_t status)
case CAIRO_STATUS_INVALID_SLANT: RETURN_NIL;
case CAIRO_STATUS_INVALID_WEIGHT: RETURN_NIL;
case CAIRO_STATUS_NO_MEMORY: RETURN_NIL;
+ case CAIRO_STATUS_INVALID_SIZE: RETURN_NIL;
default:
break;
}