summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Willenbrock <pierre@pirsoft.dnsalias.org>2007-10-23 16:45:13 +0200
committerDaniel Stone <daniel@fooishbar.org>2008-04-30 12:07:41 +0300
commit6afcf996cade0c9464d6af9b04b177b1de138cfd (patch)
tree8930d5321b61f54500dd004fc6b35520d3513cec
parent9e9eeca2b094fa9edb9c20002d42aeafb14ad1e4 (diff)
EXA: Fix off-by-one in polyline drawing.
(cherry picked from commit d502521c3669f3f22b94c39a64ab63bfd92c6a97)
-rw-r--r--exa/exa_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exa/exa_accel.c b/exa/exa_accel.c
index aed4e421c..e8444c6a4 100644
--- a/exa/exa_accel.c
+++ b/exa/exa_accel.c
@@ -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;