diff options
author | Andrea Canciani <ranma42@gmail.com> | 2010-12-09 22:00:15 +0100 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2010-12-10 11:04:48 +0100 |
commit | 85a489f0f212d68c69dbe5807b379b874daef4d1 (patch) | |
tree | 9ed5ed594d67aa84afa62b28b09f679e0abcd9a9 /src/cairo-surface-fallback.c | |
parent | 75f34b595aead729b6f6a7017c8790d68dfa0326 (diff) | |
download | cairo-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-surface-fallback.c')
-rw-r--r-- | src/cairo-surface-fallback.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cairo-surface-fallback.c b/src/cairo-surface-fallback.c index 61944c044..ca7a05187 100644 --- a/src/cairo-surface-fallback.c +++ b/src/cairo-surface-fallback.c @@ -1067,8 +1067,7 @@ _cairo_surface_fallback_stroke (cairo_surface_t *surface, if (unlikely (status)) return status; - _cairo_polygon_init (&polygon); - _cairo_polygon_limit (&polygon, clip_boxes, num_boxes); + _cairo_polygon_init (&polygon, clip_boxes, num_boxes); _cairo_traps_init (&traps); _cairo_traps_limit (&traps, clip_boxes, num_boxes); @@ -1163,8 +1162,7 @@ _cairo_surface_fallback_fill (cairo_surface_t *surface, _cairo_traps_init (&traps); _cairo_traps_limit (&traps, clip_boxes, num_boxes); - _cairo_polygon_init (&polygon); - _cairo_polygon_limit (&polygon, clip_boxes, num_boxes); + _cairo_polygon_init (&polygon, clip_boxes, num_boxes); if (_cairo_path_fixed_fill_is_empty (path)) goto DO_TRAPS; |