summaryrefslogtreecommitdiff
path: root/src/cairo-path-fill.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-08-29 08:02:52 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-08-29 17:07:40 +0100
commit5393aa6d6c4676f20d316f3cd0a18bb497574e50 (patch)
tree6b95c7aed37cc4774498cb9469d27478528977ac /src/cairo-path-fill.c
parentafea5eb79d2159fe9a5dc1a1a7b9445e40fbb474 (diff)
downloadcairo-5393aa6d6c4676f20d316f3cd0a18bb497574e50.tar.gz
[path] Return the canonical box.
When returning the single box that represents a path, always return it consistently wound.
Diffstat (limited to 'src/cairo-path-fill.c')
-rw-r--r--src/cairo-path-fill.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/cairo-path-fill.c b/src/cairo-path-fill.c
index 53350e8d9..c2deadc46 100644
--- a/src/cairo-path-fill.c
+++ b/src/cairo-path-fill.c
@@ -247,22 +247,6 @@ _cairo_path_fixed_fill_rectilinear_to_region (const cairo_path_fixed_t *path,
assert (! path->is_empty_fill);
if (_cairo_path_fixed_is_box (path, &box)) {
- if (box.p1.x > box.p2.x) {
- cairo_fixed_t t;
-
- t = box.p1.x;
- box.p1.x = box.p2.x;
- box.p2.x = t;
- }
-
- if (box.p1.y > box.p2.y) {
- cairo_fixed_t t;
-
- t = box.p1.y;
- box.p1.y = box.p2.y;
- box.p2.y = t;
- }
-
rectangle_stack[0].x = _cairo_fixed_integer_part (box.p1.x);
rectangle_stack[0].y = _cairo_fixed_integer_part (box.p1.y);
rectangle_stack[0].width = _cairo_fixed_integer_part (box.p2.x) -
@@ -375,22 +359,6 @@ _cairo_path_fixed_fill_rectilinear_to_traps (const cairo_path_fixed_t *path,
traps->is_rectangular = TRUE;
if (_cairo_path_fixed_is_box (path, &box)) {
- if (box.p1.x > box.p2.x) {
- cairo_fixed_t t;
-
- t = box.p1.x;
- box.p1.x = box.p2.x;
- box.p2.x = t;
- }
-
- if (box.p1.y > box.p2.y) {
- cairo_fixed_t t;
-
- t = box.p1.y;
- box.p1.y = box.p2.y;
- box.p2.y = t;
- }
-
return _cairo_traps_tessellate_rectangle (traps, &box.p1, &box.p2);
} else {
cairo_path_fixed_iter_t iter;