summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2014-07-19 11:30:05 +0100
committerRussell King <rmk@arm.linux.org.uk>2014-07-19 18:16:27 +0100
commitfbbbe515431f253e1790bc5c8c6dfe44c6a07165 (patch)
treeb7c3f848e68d775975a85ba0c3e5f055b845bba0
parentf653c8b95aeda5503999477231a3c42d1da47d4b (diff)
downloadxf86-video-armada-fbbbe515431f253e1790bc5c8c6dfe44c6a07165.tar.gz
xf86-video-armada-fbbbe515431f253e1790bc5c8c6dfe44c6a07165.tar.xz
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 <rmk@arm.linux.org.uk>
-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 */