mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 01:20:05 +01:00
EXA: Fix off-by-one in polyline drawing.
(cherry picked from commit d502521c36)
This commit is contained in:
parent
9e9eeca2b0
commit
6afcf996ca
1 changed files with 1 additions and 1 deletions
|
|
@ -535,7 +535,7 @@ exaPolylines(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt,
|
|||
x1 = ppt[0].x;
|
||||
y1 = ppt[0].y;
|
||||
/* If we have any non-horizontal/vertical, fall back. */
|
||||
for (i = 0; i < npt; i++) {
|
||||
for (i = 0; i < npt - 1; i++) {
|
||||
if (mode == CoordModePrevious) {
|
||||
x2 = x1 + ppt[i + 1].x;
|
||||
y2 = y1 + ppt[i + 1].y;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue