From 3f27fd8bb766f9ac76fb5e450e62c4493ef121a9 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 22 Feb 2015 11:45:00 -0500 Subject: XEEN: Fix horizontal positioning for flipped images --- engines/xeen/sprites.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/xeen') diff --git a/engines/xeen/sprites.cpp b/engines/xeen/sprites.cpp index 2c5279bebc..93c7e426f1 100644 --- a/engines/xeen/sprites.cpp +++ b/engines/xeen/sprites.cpp @@ -151,7 +151,7 @@ void SpriteResource::drawOffset(XSurface &dest, uint16 offset, const Common::Poi const byte *lineEndP = (const byte *)dest.getBasePtr(bounds.right, destPos.y + yPos); byte *destP = !flipped ? (byte *)dest.getBasePtr(destPos.x + xPos, destPos.y + yPos) : - (byte *)dest.getBasePtr(destPos.x + width - xPos, destPos.y + yPos); + (byte *)dest.getBasePtr(destPos.x + xOffset + width - xPos, destPos.y + yPos); while (byteCount < lineLength) { // The next byte is an opcode that determines what -- cgit v1.2.3