diff options
author | Pierre Willenbrock <pierre@pirsoft.dnsalias.org> | 2007-10-23 16:45:13 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-10-23 16:45:13 +0200 |
commit | d502521c3669f3f22b94c39a64ab63bfd92c6a97 (patch) | |
tree | 0b7dd71185f9c469ad5d112d2f06e9a153ca0ef1 | |
parent | a8a148919b84a293e3e7a49409ab833590357edb (diff) |
EXA: Fix off-by-one in polyline drawing.
-rw-r--r-- | exa/exa_accel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exa/exa_accel.c b/exa/exa_accel.c index 52cc5c40a..5fb72d71b 100644 --- a/exa/exa_accel.c +++ b/exa/exa_accel.c | |||
@@ -658,7 +658,7 @@ exaPolylines(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt, | |||
658 | x1 = ppt[0].x; | 658 | x1 = ppt[0].x; |
659 | y1 = ppt[0].y; | 659 | y1 = ppt[0].y; |
660 | /* If we have any non-horizontal/vertical, fall back. */ | 660 | /* If we have any non-horizontal/vertical, fall back. */ |
661 | for (i = 0; i < npt; i++) { | 661 | for (i = 0; i < npt - 1; i++) { |
662 | if (mode == CoordModePrevious) { | 662 | if (mode == CoordModePrevious) { |
663 | x2 = x1 + ppt[i + 1].x; | 663 | x2 = x1 + ppt[i + 1].x; |
664 | y2 = y1 + ppt[i + 1].y; | 664 | y2 = y1 + ppt[i + 1].y; |