aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx
diff options
context:
space:
mode:
authorEugene Sandulenko2014-06-24 00:48:52 +0300
committerEugene Sandulenko2014-06-24 00:48:52 +0300
commit5da1a453073f3fddd6fc7dd1d985ac665936cbe0 (patch)
treec6cbec6bffcd24d6b8d83ed1a7a0235e91050646 /engines/sword25/gfx
parentc176a9a534f55ae618a3ac38169eb283a2a169da (diff)
downloadscummvm-rg350-5da1a453073f3fddd6fc7dd1d985ac665936cbe0.tar.gz
scummvm-rg350-5da1a453073f3fddd6fc7dd1d985ac665936cbe0.tar.bz2
scummvm-rg350-5da1a453073f3fddd6fc7dd1d985ac665936cbe0.zip
SWORD25: Fix sprite flipping
Diffstat (limited to 'engines/sword25/gfx')
-rw-r--r--engines/sword25/gfx/image/renderedimage.cpp2
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;
}