aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorRetro-Junk2016-09-11 01:25:23 +0300
committerEugene Sandulenko2016-09-11 00:29:34 +0200
commit782e31d78c1bbcc75a52444362ef5110233bb898 (patch)
tree47c2382594517fa8065cd478bcaed624cc291e4c /engines/fullpipe
parent9ef6980770425ebd37ec4cb7d8af1d006eea5d3b (diff)
downloadscummvm-rg350-782e31d78c1bbcc75a52444362ef5110233bb898.tar.gz
scummvm-rg350-782e31d78c1bbcc75a52444362ef5110233bb898.tar.bz2
scummvm-rg350-782e31d78c1bbcc75a52444362ef5110233bb898.zip
FULLPIPE: Fix reversed statics initialization
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/statics.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 83a0de0670..0539edd047 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -1480,8 +1480,13 @@ bool Statics::load(MfcArchive &file) {
void Statics::init() {
Picture::init();
- if (_staticsId & 0x4000)
- _bitmap->reverseImage();
+ if (_staticsId & 0x4000) {
+ Bitmap *reversed = _bitmap->reverseImage();
+ freePixelData();
+ // TODO: properly dispose old _bitmap
+ _bitmap = reversed;
+ // _data = ... // useless?
+ }
}
Common::Point *Statics::getSomeXY(Common::Point &p) {