dash: Increment dash_remain by the next segment to reduce accumulation errors

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-04-19 16:12:55 +01:00
parent 5e39a8098b
commit 0046967224

View file

@ -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];
}
}