From fbbbe515431f253e1790bc5c8c6dfe44c6a07165 Mon Sep 17 00:00:00 2001 From: Russell King Date: Sat, 19 Jul 2014 11:30:05 +0100 Subject: Fix FillSpans positioning bug FillSpans included the drawable x/y coordinates. This is not necessary as the GC has miTranslate set, which ensures that we receive pre- translated coordinates here. Signed-off-by: Russell King --- src/vivante_accel.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vivante_accel.c b/src/vivante_accel.c index 9b1b923..e5e7330 100644 --- a/src/vivante_accel.c +++ b/src/vivante_accel.c @@ -581,10 +581,10 @@ Bool vivante_accel_FillSpans(DrawablePtr pDrawable, GCPtr pGC, int n, return FALSE; for (i = n, p = pBox; i; i--, p++, ppt++, pwidth++) { - p->x1 = ppt->x + pDrawable->x; - p->x2 = ppt->x + *pwidth; - p->y1 = ppt->y + pDrawable->y; - p->y2 = ppt->y + 1; + p->x1 = ppt->x; + p->x2 = p->x2 + *pwidth; + p->y1 = ppt->y; + p->y2 = p->y1 + 1; } /* Convert the boxes to a region */ -- cgit