[cairo-commit] cairo/src cairo_color.c, 1.11, 1.12 cairoint.h, 1.86, 1.87

Carl Worth commit at pdx.freedesktop.org
Mon Jan 24 09:01:54 PST 2005


Committed by: cworth

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

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

        * src/cairoint.h:
        * src/cairo_color.c (_cairo_color_get_rgb): Qualify color argument
        as const. Closes bug #2336.


Index: cairo_color.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo_color.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- cairo_color.c	19 Jan 2005 20:12:42 -0000	1.11
+++ cairo_color.c	24 Jan 2005 17:01:52 -0000	1.12
@@ -67,7 +67,8 @@
 }
 
 void
-_cairo_color_get_rgb (cairo_color_t *color, double *red, double *green, double *blue)
+_cairo_color_get_rgb (const cairo_color_t *color,
+		      double *red, double *green, double *blue)
 {
     if (red)
 	*red   = color->red;

Index: cairoint.h
===================================================================
RCS file: /cvs/cairo/cairo/src/cairoint.h,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- cairoint.h	21 Jan 2005 22:33:48 -0000	1.86
+++ cairoint.h	24 Jan 2005 17:01:52 -0000	1.87
@@ -1190,7 +1190,8 @@
 _cairo_color_set_rgb (cairo_color_t *color, double red, double green, double blue);
 
 cairo_private void
-_cairo_color_get_rgb (cairo_color_t *color, double *red, double *green, double *blue);
+_cairo_color_get_rgb (const cairo_color_t *color,
+		      double *red, double *green, double *blue);
 
 cairo_private void
 _cairo_color_set_alpha (cairo_color_t *color, double alpha);




More information about the cairo-commit mailing list