aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
authorPaul Gilbert2015-02-22 11:45:00 -0500
committerPaul Gilbert2015-02-22 11:45:00 -0500
commit3f27fd8bb766f9ac76fb5e450e62c4493ef121a9 (patch)
tree35b905df0f282e73ecfe3bed183d9616a87523fa /engines/xeen
parent6126d45b0b4fdc50ca81308f80181550da0f455c (diff)
downloadscummvm-rg350-3f27fd8bb766f9ac76fb5e450e62c4493ef121a9.tar.gz
scummvm-rg350-3f27fd8bb766f9ac76fb5e450e62c4493ef121a9.tar.bz2
scummvm-rg350-3f27fd8bb766f9ac76fb5e450e62c4493ef121a9.zip
XEEN: Fix horizontal positioning for flipped images
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/sprites.cpp2
1 files changed, 1 insertions, 1 deletions
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