From 8aaf7cb716dec17e9f2ef598eff323c80350780b Mon Sep 17 00:00:00 2001 From: Russell King Date: Fri, 12 Sep 2014 14:17:59 +0100 Subject: 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 --- src/vivante_accel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3