diff options
author | Eugene Sandulenko | 2016-08-19 22:10:17 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-19 22:12:31 +0200 |
commit | 16a3f9923059c6328d0f34a5d2582fdf2885b784 (patch) | |
tree | 4ee24028fa546eb919fb7fd04c693afe93186965 | |
parent | 0f2748b15a630f9d12ff0511d4e4cde79b8e915f (diff) | |
download | scummvm-rg350-16a3f9923059c6328d0f34a5d2582fdf2885b784.tar.gz scummvm-rg350-16a3f9923059c6328d0f34a5d2582fdf2885b784.tar.bz2 scummvm-rg350-16a3f9923059c6328d0f34a5d2582fdf2885b784.zip |
FULLPIPE: Fix Bitmap flipping code. Thanks to wanwan
-rw-r--r-- | engines/fullpipe/gfx.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index dd8d8b246d..2da97f4d34 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -1122,12 +1122,16 @@ void Bitmap::copier(uint32 *dest, byte *src, int len, int32 *palette, bool cb05_ } Bitmap *Bitmap::reverseImage(bool flip) { - if (flip) - _flipping = Graphics::FLIP_H; - else - _flipping = Graphics::FLIP_NONE; + Bitmap *b = new Bitmap(this); - return this; + if (flip) { + if (b->_flipping == Graphics::FLIP_NONE) + b->_flipping = Graphics::FLIP_H; + else + b->_flipping = Graphics::FLIP_NONE; + } + + return b; } Bitmap *Bitmap::flipVertical() { |