summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2014-09-12 14:08:35 +0100
committerRussell King <rmk@arm.linux.org.uk>2014-09-12 14:19:08 +0100
commit7011e07304533678de471ff932e702195478d894 (patch)
tree5da6b366b6d1090269f26053ac109fef3c75c8be
parent2a47974b0375b8e3467747a19773870e5d6ba010 (diff)
downloadxf86-video-armada-7011e07304533678de471ff932e702195478d894.tar.gz
vivante: fix FillSpans() X coordinate
FillSpans() x2 coordinate was undefined as it should be adding the width to the x1 coordinate. Fix this. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
-rw-r--r--src/vivante_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vivante_accel.c b/src/vivante_accel.c
index e9ea63c..3ffa6b8 100644
--- a/src/vivante_accel.c
+++ b/src/vivante_accel.c
@@ -592,7 +592,7 @@ Bool vivante_accel_FillSpans(DrawablePtr pDrawable, GCPtr pGC, int n,
for (i = n, p = pBox; i; i--, p++, ppt++, pwidth++) {
p->x1 = ppt->x;
- p->x2 = p->x2 + *pwidth;
+ p->x2 = p->x1 + *pwidth;
p->y1 = ppt->y;
p->y2 = p->y1 + 1;
}