[cairo-commit] src/cairo-pattern.c

Andrea Canciani ranma42 at kemper.freedesktop.org
Fri Jul 29 04:18:28 PDT 2011


 src/cairo-pattern.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 2787ef4e73fe668edbb938aa82ab569789a39116
Author: Andrea Canciani <ranma42 at gmail.com>
Date:   Sat Jan 22 17:58:14 2011 +0100

    pattern: Complete the list of possible pattern errors
    
    A mesh pattern is put in CAIRO_STATUS_INVALID_MESH_CONSTRUCTION when
    an invalid patch construction operation is performed.
    
    A mesh pattern is put in CAIRO_STATUS_INVALID_INDEX when an operation
    is performed with an out-of-bound index.
    
    Any pattern is put in CAIRO_STATUS_INVALID_MATRIX when its matrix is
    set to a singular matrix.

diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c
index bb4c643..13aad6f 100644
--- a/src/cairo-pattern.c
+++ b/src/cairo-pattern.c
@@ -1025,8 +1025,9 @@ cairo_pattern_get_type (cairo_pattern_t *pattern)
  * Checks whether an error has previously occurred for this
  * pattern.
  *
- * Return value: %CAIRO_STATUS_SUCCESS, %CAIRO_STATUS_NO_MEMORY, or
- * %CAIRO_STATUS_PATTERN_TYPE_MISMATCH.
+ * Return value: %CAIRO_STATUS_SUCCESS, %CAIRO_STATUS_NO_MEMORY,
+ * %CAIRO_STATUS_INVALID_MATRIX, %CAIRO_STATUS_PATTERN_TYPE_MISMATCH,
+ * or %CAIRO_STATUS_INVALID_MESH_CONSTRUCTION.
  **/
 cairo_status_t
 cairo_pattern_status (cairo_pattern_t *pattern)


More information about the cairo-commit mailing list