[cairo-commit] cairo-5c/examples animate.5c,1.8,1.9
Keith Packard
commit at pdx.freedesktop.org
Mon Jun 6 20:41:38 PDT 2005
- Previous message: [cairo-commit] cairo-5c ChangeLog, 1.21, 1.22 cairo.5c, 1.11,
1.12 gtk.c, 1.9, 1.10
- Next message: [cairo-commit] cairo-5c ChangeLog,1.21,1.22 cairo.5c,1.11,1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: keithp
Update of /cvs/cairo/cairo-5c/examples
In directory gabe:/tmp/cvs-serv4756/examples
Modified Files:
animate.5c
Log Message:
2005-06-06 Keith Packard <keithp at keithp.com>
* cairo.5c:
* examples/animate.5c:
* gtk.c: (gtk_repaint_timeout), (gtk_thread_main),
(cairo_5c_tool_dirty):
Some locking changes. Still locks up from time to time.
Index: animate.5c
===================================================================
RCS file: /cvs/cairo/cairo-5c/examples/animate.5c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- animate.5c 18 May 2005 06:21:16 -0000 1.8
+++ animate.5c 7 Jun 2005 03:41:36 -0000 1.9
@@ -72,7 +72,7 @@
restore (cr);
}
-void transform (cairo_t cr, real t)
+void my_transform (cairo_t cr, real t)
{
translate (cr, 50, 50);
rotate (cr, t * pi / 60);
@@ -81,6 +81,7 @@
void animate (cairo_t cr, int n, int m)
{
cr = dup (cr);
+ set_font (cr, "Gadget-50");
real t = 0;
for (;;)
{
@@ -89,8 +90,10 @@
translate (cr, n * 100, m * 100);
set_source_rgb (cr, 1, 1, 1);
rectangle (cr, 0, 0, 100, 100);
+ clip (cr);
+ rectangle (cr, 0, 0, 100, 100);
fill (cr);
- transform (cr, t);
+ my_transform (cr, t);
picture (cr);
restore (cr);
enable (cr);
@@ -103,7 +106,6 @@
{
cairo_t cr = new ();
- set_font (cr, "Gadget-20");
fork animate (cr, 0, 0);
fork animate (cr, 1, 0);
fork animate (cr, 2, 0);
- Previous message: [cairo-commit] cairo-5c ChangeLog, 1.21, 1.22 cairo.5c, 1.11,
1.12 gtk.c, 1.9, 1.10
- Next message: [cairo-commit] cairo-5c ChangeLog,1.21,1.22 cairo.5c,1.11,1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list