[Scummvm-cvs-logs] scummvm master -> 5da1a453073f3fddd6fc7dd1d985ac665936cbe0

sev- sev at scummvm.org
Mon Jun 23 23:49:37 CEST 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5da1a45307 SWORD25: Fix sprite flipping


Commit: 5da1a453073f3fddd6fc7dd1d985ac665936cbe0
    https://github.com/scummvm/scummvm/commit/5da1a453073f3fddd6fc7dd1d985ac665936cbe0
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2014-06-24T00:48:52+03:00

Commit Message:
SWORD25: Fix sprite flipping

Changed paths:
    engines/sword25/gfx/image/renderedimage.cpp



diff --git a/engines/sword25/gfx/image/renderedimage.cpp b/engines/sword25/gfx/image/renderedimage.cpp
index de79630..8c6369a 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;
 }






More information about the Scummvm-git-logs mailing list