[cairo-commit] cairo/src cairo-path.c,1.25,1.26
Keith Packard
commit at pdx.freedesktop.org
Mon May 2 12:36:23 PDT 2005
Committed by: keithp
Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv12766/src
Modified Files:
cairo-path.c
Log Message:
2005-05-02 Keith Packard <keithp at keithp.com>
reviewed by: cworth
* src/cairo-path.c: (_cairo_path_fixed_rel_curve_to):
Use correct arguments to compute absolute positions.
* test/Makefile.am:
* test/rel-path-ref.png:
* test/rel-path.c: (draw), (main):
Test cairo_rel_move_to, cairo_rel_line_to and cairo_rel_curve_to
Index: cairo-path.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-path.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- cairo-path.c 26 Apr 2005 19:38:06 -0000 1.25
+++ cairo-path.c 2 May 2005 19:36:20 -0000 1.26
@@ -260,11 +260,11 @@
x0 = path->current_point.x + dx0;
y0 = path->current_point.y + dy0;
- x1 = path->current_point.x + dx0;
- y1 = path->current_point.y + dy0;
+ x1 = path->current_point.x + dx1;
+ y1 = path->current_point.y + dy1;
- x2 = path->current_point.x + dx0;
- y2 = path->current_point.y + dy0;
+ x2 = path->current_point.x + dx2;
+ y2 = path->current_point.y + dy2;
return _cairo_path_fixed_curve_to (path,
x0, y0,
More information about the cairo-commit
mailing list