[Scummvm-cvs-logs] scummvm master -> f5a508ff4d37ee29ec673862f52767cd664f7b02

sev- sev at scummvm.org
Fri Aug 19 22:36:56 CEST 2016


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:
f5a508ff4d FULLPIPE: Let the bitmaps flip twice


Commit: f5a508ff4d37ee29ec673862f52767cd664f7b02
    https://github.com/scummvm/scummvm/commit/f5a508ff4d37ee29ec673862f52767cd664f7b02
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-08-19T22:36:42+02:00

Commit Message:
FULLPIPE: Let the bitmaps flip twice

Changed paths:
    engines/fullpipe/gfx.cpp



diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index b357bbd..174f66a 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -1124,12 +1124,8 @@ void Bitmap::copier(uint32 *dest, byte *src, int len, int32 *palette, bool cb05_
 Bitmap *Bitmap::reverseImage(bool flip) {
 	Bitmap *b = new Bitmap(this);
 
-	if (flip) {
-		if (b->_flipping == Graphics::FLIP_NONE)
-			b->_flipping = Graphics::FLIP_H;
-		else
-			b->_flipping = Graphics::FLIP_NONE;
-	}
+	if (flip)
+		b->_flipping ^= Graphics::FLIP_H;
 
 	return b;
 }
@@ -1137,7 +1133,7 @@ Bitmap *Bitmap::reverseImage(bool flip) {
 Bitmap *Bitmap::flipVertical() {
 	Bitmap *b = new Bitmap(this);
 
-	b->_flipping = Graphics::FLIP_V;
+	b->_flipping ^= Graphics::FLIP_V;
 
 	return b;
 }






More information about the Scummvm-git-logs mailing list