diff options
-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() { |