[cairo-commit] gtkcairo/tests demo.c,1.9,1.10

Oeyvind Kolaas commit at pdx.freedesktop.org
Sun Aug 7 15:57:11 PDT 2005


Committed by: pippin

Update of /cvs/cairo/gtkcairo/tests
In directory gabe:/tmp/cvs-serv29509/tests

Modified Files:
	demo.c 
Log Message:
Sync up with cairo api

Index: demo.c
===================================================================
RCS file: /cvs/cairo/gtkcairo/tests/demo.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- demo.c	11 Dec 2004 16:04:42 -0000	1.9
+++ demo.c	7 Aug 2005 22:57:09 -0000	1.10
@@ -21,12 +21,12 @@
   gint box_size = (width + height) / 6;
 
   cairo_save (cairo);
-    cairo_default_matrix (cairo);
+    cairo_identity_matrix (cairo);
     cairo_translate (cairo, width / 2, height / 2);
 
     cairo_rotate (cairo, gtk_range_get_value (range));
     cairo_rectangle (cairo, -box_size, -box_size, box_size, box_size);
-    cairo_set_rgb_color (cairo, 1, 0, 0);
+    cairo_set_source_rgb (cairo, 1, 0, 0);
     cairo_fill (cairo);
   cairo_restore (cairo);
 }




More information about the cairo-commit mailing list