summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vivante_accel.c8
1 files 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 */