summaryrefslogtreecommitdiff
path: root/src/cairo-path-stroke.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2010-12-09 22:00:15 +0100
committerAndrea Canciani <ranma42@gmail.com>2010-12-10 11:04:48 +0100
commit85a489f0f212d68c69dbe5807b379b874daef4d1 (patch)
tree9ed5ed594d67aa84afa62b28b09f679e0abcd9a9 /src/cairo-path-stroke.c
parent75f34b595aead729b6f6a7017c8790d68dfa0326 (diff)
downloadcairo-85a489f0f212d68c69dbe5807b379b874daef4d1.tar.gz
polygon: Merge _cairo_polygon_init and _cairo_polygon_limit
_cairo_polygon_limit() had to be called immediately after _cairo_polygon_init() (or never at all). Merging the two calls is a simple way to enforce this rule.
Diffstat (limited to 'src/cairo-path-stroke.c')
-rw-r--r--src/cairo-path-stroke.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cairo-path-stroke.c b/src/cairo-path-stroke.c
index 2b5e23aba..d5ced0e58 100644
--- a/src/cairo-path-stroke.c
+++ b/src/cairo-path-stroke.c
@@ -1407,9 +1407,7 @@ _cairo_path_fixed_stroke_to_traps (const cairo_path_fixed_t *path,
return status;
}
- _cairo_polygon_init (&polygon);
- if (traps->num_limits)
- _cairo_polygon_limit (&polygon, traps->limits, traps->num_limits);
+ _cairo_polygon_init (&polygon, traps->limits, traps->num_limits);
status = _cairo_path_fixed_stroke_to_polygon (path,
stroke_style,