diff options
author | Eugene Sandulenko | 2014-06-24 00:48:52 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2014-06-24 00:48:52 +0300 |
commit | 5da1a453073f3fddd6fc7dd1d985ac665936cbe0 (patch) | |
tree | c6cbec6bffcd24d6b8d83ed1a7a0235e91050646 | |
parent | c176a9a534f55ae618a3ac38169eb283a2a169da (diff) | |
download | scummvm-rg350-5da1a453073f3fddd6fc7dd1d985ac665936cbe0.tar.gz scummvm-rg350-5da1a453073f3fddd6fc7dd1d985ac665936cbe0.tar.bz2 scummvm-rg350-5da1a453073f3fddd6fc7dd1d985ac665936cbe0.zip |
SWORD25: Fix sprite flipping
-rw-r--r-- | engines/sword25/gfx/image/renderedimage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/gfx/image/renderedimage.cpp b/engines/sword25/gfx/image/renderedimage.cpp index de79630376..8c6369a790 100644 --- a/engines/sword25/gfx/image/renderedimage.cpp +++ b/engines/sword25/gfx/image/renderedimage.cpp @@ -233,7 +233,7 @@ uint RenderedImage::getPixel(int x, int y) { // ----------------------------------------------------------------------------- bool RenderedImage::blit(int posX, int posY, int flipping, Common::Rect *pPartRect, uint color, int width, int height, RectangleList *updateRects) { - _surface.blit(*_backSurface, posX, posY, flipping, pPartRect, color, width, height); + _surface.blit(*_backSurface, posX, posY, (((flipping & 1) ? Graphics::FLIP_V : 0) | ((flipping & 2) ? Graphics::FLIP_H : 0)), pPartRect, color, width, height); return true; } |