[cairo-commit] cairo/src cairo_hull.c,1.5,1.6
Carl Worth
commit at pdx.freedesktop.org
Thu Oct 21 18:26:27 PDT 2004
Committed by: cworth
Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv27585/src
Modified Files:
cairo_hull.c
Log Message:
* src/cairo_hull.c (_cairo_hull_vertex_compare): Fix comparison so
that it results in a stable sort. This should fix some rendering
bugs due to broken pens.
Index: cairo_hull.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo_hull.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- cairo_hull.c 4 Sep 2004 13:38:34 -0000 1.5
+++ cairo_hull.c 22 Oct 2004 01:26:25 -0000 1.6
@@ -97,10 +97,13 @@
(cairo_fixed_48_16_t) a->slope.dy * a->slope.dy);
b_dist = ((cairo_fixed_48_16_t) b->slope.dx * b->slope.dx +
(cairo_fixed_48_16_t) b->slope.dy * b->slope.dy);
- if (a_dist < b_dist)
+ if (a_dist < b_dist) {
a->discard = 1;
- else
+ ret = -1;
+ } else {
b->discard = 1;
+ ret = 1;
+ }
}
return ret;
More information about the cairo-commit
mailing list