diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-04-19 16:12:55 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-04-19 16:12:55 +0100 |
commit | 0046967224640c0a390b4a7b376bbd631ed32a5c (patch) | |
tree | d1cb3c7f8681ef2636fec268d6d3fba728746887 /src/cairo-stroke-dash.c | |
parent | 5e39a8098b88b2e8d25eb46c6bbe8656c9e0260c (diff) | |
download | cairo-0046967224640c0a390b4a7b376bbd631ed32a5c.tar.gz |
dash: Increment dash_remain by the next segment to reduce accumulation errors
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-stroke-dash.c')
-rw-r--r-- | src/cairo-stroke-dash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-stroke-dash.c b/src/cairo-stroke-dash.c index b38d3bced..9494010f5 100644 --- a/src/cairo-stroke-dash.c +++ b/src/cairo-stroke-dash.c @@ -76,7 +76,7 @@ _cairo_stroker_dash_step (cairo_stroker_dash_t *dash, double step) dash->dash_index = 0; dash->dash_on = ! dash->dash_on; - dash->dash_remain = dash->dashes[dash->dash_index]; + dash->dash_remain += dash->dashes[dash->dash_index]; } } |