[cairo-commit] rcairo/src/lib/cairo/context path.rb,1.4,1.5

Kouhei Sutou commit at pdx.freedesktop.org
Mon May 28 23:56:57 PDT 2007


Committed by: kou

Update of /cvs/cairo/rcairo/src/lib/cairo/context
In directory kemper:/tmp/cvs-serv8153/src/lib/cairo/context

Modified Files:
	path.rb 
Log Message:
* src/lib/cairo/context/path.rb: fixed typos.
  Thanks to NANKI Haruo!!!
* README: added an entry for NANKI Haruo.


Index: path.rb
===================================================================
RCS file: /cvs/cairo/rcairo/src/lib/cairo/context/path.rb,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- path.rb	6 May 2007 10:10:50 -0000	1.4
+++ path.rb	29 May 2007 06:56:45 -0000	1.5
@@ -79,7 +79,7 @@
                   3 * cy1       * (    2 * ratio - 3 * ratio * ratio) +
                   3 * cy2       *      ratio  * ratio
 
-            ratio = y / Math.sqrt(dx ** 2, dy ** 2)
+            ratio = y / Math.sqrt(dx ** 2 + dy ** 2)
 
             [new_x + -dy * ratio, new_y + dx * ratio]
           when PATH_CLOSE_PATH



More information about the cairo-commit mailing list