[cairo-commit] rcairo/packages/cairo/lib cairo.rb,1.20,1.21

Kouhei Sutou commit at pdx.freedesktop.org
Sat Oct 14 23:49:07 PDT 2006


Committed by: kou

Update of /cvs/cairo/rcairo/packages/cairo/lib
In directory kemper:/tmp/cvs-serv21858/packages/cairo/lib

Modified Files:
	cairo.rb 
Log Message:
* packages/cairo/lib/cairo.rb (Cairo::Context#quad_to,
  Cairo::Context#rel_quad_to): followed the current API:
  get_point -> current_point.


Index: cairo.rb
===================================================================
RCS file: /cvs/cairo/rcairo/packages/cairo/lib/cairo.rb,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- cairo.rb	1 Jul 2006 14:45:55 -0000	1.20
+++ cairo.rb	15 Oct 2006 06:49:04 -0000	1.21
@@ -29,16 +29,16 @@
     Cairo.__add_one_arg_setter(self)
 
     def quad_to(x1, y1, x2, y2)
-      ( x0, y0 ) = get_point
-      cx1 = x0 + 2 * ( x1 - x0 ) / 3
-      cy1 = y0 + 2 * ( y1 - y0 ) / 3
-      cx2 = cx1 + ( x2 - x0 ) / 3
-      cy2 = cy1 + ( y2 - y0 ) / 3
+      x0, y0 = current_point
+      cx1 = x0 + 2 * (x1 - x0) / 3
+      cy1 = y0 + 2 * (y1 - y0) / 3
+      cx2 = cx1 + (x2 - x0) / 3
+      cy2 = cy1 + (y2 - y0) / 3
       curve_to(cx1, cy1, cx2, cy2, x2, y2)
     end
     
     def rel_quad_to(x1, y1, x2, y2)
-      ( x0, y0 ) = get_point
+      x0, y0 = current_point
       quad_to(x1 + x0, y1 + y0, x2 + x0, y2 + x0)
     end
 



More information about the cairo-commit mailing list