mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 00:38:06 +02:00
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:
parent
5e39a8098b
commit
0046967224
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue