diff options
author | Russell King <rmk@arm.linux.org.uk> | 2014-09-12 14:08:35 +0100 |
---|---|---|
committer | Russell King <rmk@arm.linux.org.uk> | 2014-09-12 14:19:08 +0100 |
commit | 7011e07304533678de471ff932e702195478d894 (patch) | |
tree | 5da6b366b6d1090269f26053ac109fef3c75c8be /src | |
parent | 2a47974b0375b8e3467747a19773870e5d6ba010 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/vivante_accel.c | 2 |
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; } |