[cairo-commit] rcairo/tests spline,1.1,1.2

Evan Martin commit at pdx.freedesktop.org
Tue Oct 28 15:31:09 PST 2003


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
  





More information about the cairo-commit mailing list