[cairo-commit] rcairo/tests spline,1.1,1.2
Evan Martin
commit at pdx.freedesktop.org
Tue Oct 28 15:31:09 PST 2003
- Previous message: [cairo-commit] rcairo/src .cvsignore,NONE,1.1 cairo.c,1.1,1.2 image.c,1.1,1.2 shared.h,1.1,1.2
- Next message: [cairo-commit] cairo-gtk-engine/src Makefile.am,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: martine
Update of /cvs/cairo/rcairo/tests
In directory pdx:/tmp/cvs-serv1318/tests
Modified Files:
spline
Log Message:
Those last-minute changes in my first commit caused it not to compile.
I fixed those, and added generation code for all the enums while I was at it.
Also: copyrights everywhere (not sure how useful that is, really, because
I haven't specified a license yet), and updated the spline demo to use round
caps (which is what I needed the enums for).
Index: spline
===================================================================
RCS file: /cvs/cairo/rcairo/tests/spline,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** spline 28 Oct 2003 18:27:22 -0000 1.1
--- spline 28 Oct 2003 23:31:06 -0000 1.2
***************
*** 19,22 ****
--- 19,23 ----
def draw
@cairo.set_rgb_color(1, 1, 1)
+ @cairo.line_cap = Cairo::LineCap::ROUND
@cairo.line_width = 2 + ((rand**2.0) * 50)
@cairo.stroke {
***************
*** 36,39 ****
--- 37,41 ----
dpy = Cairo::Xlib::Display.new
sw = SplineWindow.new(dpy)
+ puts "Tap keys to get new splines..."
dpy.mainloop
- Previous message: [cairo-commit] rcairo/src .cvsignore,NONE,1.1 cairo.c,1.1,1.2 image.c,1.1,1.2 shared.h,1.1,1.2
- Next message: [cairo-commit] cairo-gtk-engine/src Makefile.am,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list