aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-19 22:36:11 +0200
committerEugene Sandulenko2016-08-19 22:36:42 +0200
commitf5a508ff4d37ee29ec673862f52767cd664f7b02 (patch)
treea239fd1d08d8c3815ca085beb3c881e9000a568a
parent557ad21e3d5367ca11cfd35758231897567f5b53 (diff)
downloadscummvm-rg350-f5a508ff4d37ee29ec673862f52767cd664f7b02.tar.gz
scummvm-rg350-f5a508ff4d37ee29ec673862f52767cd664f7b02.tar.bz2
scummvm-rg350-f5a508ff4d37ee29ec673862f52767cd664f7b02.zip
FULLPIPE: Let the bitmaps flip twice
-rw-r--r--engines/fullpipe/gfx.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index b357bbd587..174f66a3c8 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;
}