[cairo-commit] cairo/src cairo_matrix.c, 1.17, 1.18 cairoint.h, 1.98, 1.99

Carl Worth commit at pdx.freedesktop.org
Fri Feb 25 13:31:02 PST 2005


Committed by: cworth

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

Modified Files:
	cairo_matrix.c cairoint.h 
Log Message:

        From David Reveman:

        * src/cairo_matrix.c (_cairo_matrix_is_integer_translation):
        Rewrite to use cairo_bool_t for legibility.


Index: cairo_matrix.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo_matrix.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- cairo_matrix.c	22 Feb 2005 19:35:03 -0000	1.17
+++ cairo_matrix.c	25 Feb 2005 21:31:00 -0000	1.18
@@ -620,7 +620,7 @@
     return CAIRO_STATUS_SUCCESS;
 }
 
-int 
+cairo_bool_t 
 _cairo_matrix_is_integer_translation(cairo_matrix_t *mat, 
 				     int *itx, int *ity)
 {
@@ -639,7 +639,7 @@
     if (ok) {
 	*itx = _cairo_fixed_integer_part(ttx);
 	*ity = _cairo_fixed_integer_part(tty);
-	return 1;
+	return TRUE;
     } 
-    return 0;
+    return FALSE;
 }

Index: cairoint.h
===================================================================
RCS file: /cvs/cairo/cairo/src/cairoint.h,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- cairoint.h	25 Feb 2005 20:52:47 -0000	1.98
+++ cairoint.h	25 Feb 2005 21:31:00 -0000	1.99
@@ -1635,7 +1635,7 @@
 cairo_private cairo_status_t
 _cairo_matrix_compute_scale_factors (cairo_matrix_t *matrix, double *sx, double *sy, int x_major);
 
-cairo_private int
+cairo_private cairo_bool_t
 _cairo_matrix_is_integer_translation(cairo_matrix_t *matrix, int *itx, int *ity);
 
 /* cairo_traps.c */




More information about the cairo-commit mailing list