[cairo-commit] gtkcairo/tests demo.c,1.4,1.5
OEyvind Kolaas
commit at pdx.freedesktop.org
Mon Aug 15 11:12:59 PDT 2005
Committed by: pippin
Update of /cvs/cairo/gtkcairo/tests
In directory pdx:/tmp/cvs-serv2020/tests
Modified Files:
demo.c
Log Message:
Initial checkin of glx aware cairo code
Index: demo.c
===================================================================
RCS file: /cvs/cairo/gtkcairo/tests/demo.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** demo.c 12 Feb 2004 17:55:22 -0000 1.4
--- demo.c 15 Feb 2004 17:46:28 -0000 1.5
***************
*** 20,23 ****
--- 20,25 ----
gint box_size = (width+height)/6, box_overlap = (width+height)/32;
+ cairo_save (cairo);
+
cairo_default_matrix (cairo);
cairo_translate (cairo, width/2, height/2);
***************
*** 27,30 ****
--- 29,33 ----
cairo_set_rgb_color (cairo, 1, 0, 0);
cairo_fill (cairo);
+ cairo_restore (cairo);
}
More information about the cairo-commit
mailing list