[cairo-commit] cairo-demo/path_paint ChangeLog, 1.5, 1.6 path_paint.c, 1.5, 1.6

Oeyvind Kolaas commit at pdx.freedesktop.org
Fri Apr 15 11:49:57 PDT 2005


Committed by: pippin

Update of /cvs/cairo/cairo-demo/path_paint
In directory gabe:/tmp/cvs-serv32761

Modified Files:
	ChangeLog path_paint.c 
Log Message:
use cairo_set_source_rgb?

Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo-demo/path_paint/ChangeLog,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- ChangeLog	30 Mar 2005 12:55:38 -0000	1.5
+++ ChangeLog	15 Apr 2005 18:49:55 -0000	1.6
@@ -1,3 +1,7 @@
+2005-04-15  Øyvind Kolås  <pippin at freedesktop.org>
+
+	* path_paint.c: use cairo_set_source_rgb?
+
 2005-03-30  Øyvind Kolås  <pippin at freedesktop.org>
 
 	* path_paint.c: Applied memset parameter reordering patch from 

Index: path_paint.c
===================================================================
RCS file: /cvs/cairo/cairo-demo/path_paint/path_paint.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- path_paint.c	30 Mar 2005 12:55:38 -0000	1.5
+++ path_paint.c	15 Apr 2005 18:49:55 -0000	1.6
@@ -63,22 +63,22 @@
   cairo_save (cr);
 
   cairo_rectangle (cr, 0,0, WIDTH, HEIGHT);
-  cairo_set_rgb_color (cr, 1,1,1);
+  cairo_set_source_rgb (cr, 1,1,1);
   cairo_fill (cr);
 
   cairo_move_to (cr, 0,0);
   cairo_show_surface (cr, backbuffer, WIDTH, HEIGHT);
 
   cairo_set_line_width (cr, pen_radius*2);
-  cairo_set_alpha (cr, 0.5);
+  cairo_set_source_rgba (cr, 1,1,1, 0.5);
 
   if (pen_color_is_black)
     {
-      cairo_set_rgb_color (cr, 0,0,0);
+      cairo_set_source_rgb (cr, 0,0,0);
     }
   else
     {
-      cairo_set_rgb_color (cr, 1,1,1);
+      cairo_set_source_rgb (cr, 1,1,1);
     }
 
   cairo_set_line_join (cr, CAIRO_LINE_JOIN_ROUND);




More information about the cairo-commit mailing list