aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/statics.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2017-03-22 23:02:52 +0200
committerFilippos Karapetis2017-03-22 23:02:52 +0200
commit8bc03c87c519350344c53ca2e5573d5a6e54368a (patch)
treea98410978162292dfd3e18b5a2b0b245b673b0c6 /engines/fullpipe/statics.cpp
parent95c776e1eb61115df7c77f9cabd24414c1ff9234 (diff)
downloadscummvm-rg350-8bc03c87c519350344c53ca2e5573d5a6e54368a.tar.gz
scummvm-rg350-8bc03c87c519350344c53ca2e5573d5a6e54368a.tar.bz2
scummvm-rg350-8bc03c87c519350344c53ca2e5573d5a6e54368a.zip
FULLPIPE: Fix corruption in flipped bitmaps
The TODO in the code in question should be reviewed, but the call to freePixelData() unconditionally deleted the original bitmap, which is not correct
Diffstat (limited to 'engines/fullpipe/statics.cpp')
-rw-r--r--engines/fullpipe/statics.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index e77398287a..58dd00e72a 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -1472,8 +1472,9 @@ void Statics::init() {
if (_staticsId & 0x4000) {
Bitmap *reversed = _bitmap->reverseImage();
- freePixelData();
// TODO: properly dispose old _bitmap
+ // Enabling the call below causes corruption in flipped bitmaps
+ //freePixelData();
_bitmap = reversed;
}
}