diff options
author | Retro-Junk | 2016-09-11 01:25:23 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-11 00:29:34 +0200 |
commit | 782e31d78c1bbcc75a52444362ef5110233bb898 (patch) | |
tree | 47c2382594517fa8065cd478bcaed624cc291e4c /engines | |
parent | 9ef6980770425ebd37ec4cb7d8af1d006eea5d3b (diff) | |
download | scummvm-rg350-782e31d78c1bbcc75a52444362ef5110233bb898.tar.gz scummvm-rg350-782e31d78c1bbcc75a52444362ef5110233bb898.tar.bz2 scummvm-rg350-782e31d78c1bbcc75a52444362ef5110233bb898.zip |
FULLPIPE: Fix reversed statics initialization
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/statics.cpp | 9 |
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) { |