summaryrefslogtreecommitdiff
path: root/src/cairo-misc.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-misc.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-misc.c')
-rw-r--r--src/cairo-misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cairo-misc.c b/src/cairo-misc.c
index 708ba52c..729e6d53 100644
--- a/src/cairo-misc.c
+++ b/src/cairo-misc.c
@@ -120,7 +120,9 @@ cairo_status_to_string (cairo_status_t status)
case CAIRO_STATUS_INVALID_SLANT:
return "invalid value for an input #cairo_font_slant_t";
case CAIRO_STATUS_INVALID_WEIGHT:
- return "input value for an input #cairo_font_weight_t";
+ return "invalid value for an input #cairo_font_weight_t";
+ case CAIRO_STATUS_INVALID_SIZE:
+ return "invalid value for the size of the input (surface, pattern, etc.)";
}
return "<unknown error status>";