From 7011e07304533678de471ff932e702195478d894 Mon Sep 17 00:00:00 2001 From: Russell King Date: Fri, 12 Sep 2014 14:08:35 +0100 Subject: 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 --- src/vivante_accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit