diff options
author | Russell King <rmk@arm.linux.org.uk> | 2014-09-12 14:17:59 +0100 |
---|---|---|
committer | Russell King <rmk@arm.linux.org.uk> | 2014-09-12 14:19:08 +0100 |
commit | 8aaf7cb716dec17e9f2ef598eff323c80350780b (patch) | |
tree | e4fd02bfc62fa0b46e55d945656407134489ce2d /src | |
parent | 7011e07304533678de471ff932e702195478d894 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/vivante_accel.c | 3 |
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; |