[cairo-commit] rcairo/packages/cairo/lib cairo.rb,1.17,1.18

Kouhei Sutou commit at pdx.freedesktop.org
Sat Dec 17 23:28:21 PST 2005


Committed by: kou

Update of /cvs/cairo/rcairo/packages/cairo/lib
In directory gabe:/tmp/cvs-serv20563/packages/cairo/lib

Modified Files:
	cairo.rb 
Log Message:
* packages/cairo/lib/cairo.rb (Cairo::Context#rounded_rectangle): 
  processed h and height same as the one of
  Cairo::Context#rectangle.

* samples/pac1.rb, samples/pac2.rb: followed the above change.


Index: cairo.rb
===================================================================
RCS file: /cvs/cairo/rcairo/packages/cairo/lib/cairo.rb,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- cairo.rb	17 Oct 2005 12:59:55 -0000	1.17
+++ cairo.rb	18 Dec 2005 07:28:19 -0000	1.18
@@ -46,7 +46,7 @@
       x1 = x
       x2 = x1 + width
       y1 = y
-      y2 = y1 - height
+      y2 = y1 + height
 
       y_radius ||= x_radius
 
@@ -60,13 +60,13 @@
 
       move_to(x1 + xr1, y1)
       line_to(x2 - xr1, y1)
-      curve_to(x2 - xr2, y1, x2, y1 - yr2, x2, y1 - yr1)
-      line_to(x2, y2 + yr1)
-      curve_to(x2, y2 + yr2, x2 - xr2, y2, x2 - xr1, y2)
+      curve_to(x2 - xr2, y1, x2, y1 + yr2, x2, y1 + yr1)
+      line_to(x2, y2 - yr1)
+      curve_to(x2, y2 - yr2, x2 - xr2, y2, x2 - xr1, y2)
       line_to(x1 + xr1, y2)
-      curve_to(x1 + xr2, y2, x1, y2 + yr2, x1, y2 + yr1)
-      line_to(x1, y1 - yr1)
-      curve_to(x1, y1 - yr2, x1 + xr2, y1, x1 + xr1, y1)
+      curve_to(x1 + xr2, y2, x1, y2 - yr2, x1, y2 - yr1)
+      line_to(x1, y1 + yr1)
+      curve_to(x1, y1 + yr2, x1 + xr2, y1, x1 + xr1, y1)
       close_path
     end
     



More information about the cairo-commit mailing list