summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2014-09-12 14:17:59 +0100
committerRussell King <rmk@arm.linux.org.uk>2014-09-12 14:19:08 +0100
commit8aaf7cb716dec17e9f2ef598eff323c80350780b (patch)
treee4fd02bfc62fa0b46e55d945656407134489ce2d
parent7011e07304533678de471ff932e702195478d894 (diff)
downloadxf86-video-armada-8aaf7cb716dec17e9f2ef598eff323c80350780b.tar.gz
vivante: fix PutImage() positioning bug
xts finds that PutImage() fails. This is because PutImage() on a window drawable must include the drawables position on the pixmap, and this was not being taken into account. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
-rw-r--r--src/vivante_accel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vivante_accel.c b/src/vivante_accel.c
index 3ffa6b8..72bf804 100644
--- a/src/vivante_accel.c
+++ b/src/vivante_accel.c
@@ -683,7 +683,8 @@ Bool vivante_accel_PutImage(DrawablePtr pDrawable, GCPtr pGC, int depth,
goto unmap;
}
- /* No need to load the brush here - the blit copy doesn't use it. */
+ x += pDrawable->x;
+ y += pDrawable->y;
total.x1 = x;
total.y1 = y;