diff options
-rw-r--r-- | engines/neverhood/graphics.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/neverhood/graphics.cpp b/engines/neverhood/graphics.cpp index 913954532f..5099c7a00e 100644 --- a/engines/neverhood/graphics.cpp +++ b/engines/neverhood/graphics.cpp @@ -315,9 +315,12 @@ void unpackSpriteRle(const byte *source, int width, int height, byte *dest, int void unpackSpriteNormal(const byte *source, int width, int height, byte *dest, int destPitch, bool flipX, bool flipY) { - // TODO: Flip Y - - int sourcePitch = (width + 3) & 0xFFFC; + const int sourcePitch = (width + 3) & 0xFFFC; + + if (flipY) { + dest += destPitch * (height - 1); + destPitch = -destPitch; + } if (!flipX) { while (height-- > 0) { |