diff options
author | Eugene Sandulenko | 2014-05-02 12:40:06 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2014-05-02 12:40:06 +0300 |
commit | e714dea7c773645cbb0e2aeaf1dd260888391806 (patch) | |
tree | 5bb9334d4b5b4b0fefeec1cf2856c4e8d1639d9b /engines/fullpipe/statics.cpp | |
parent | b5385f600341b9dab3ae9322da9b4b7182f52292 (diff) | |
download | scummvm-rg350-e714dea7c773645cbb0e2aeaf1dd260888391806.tar.gz scummvm-rg350-e714dea7c773645cbb0e2aeaf1dd260888391806.tar.bz2 scummvm-rg350-e714dea7c773645cbb0e2aeaf1dd260888391806.zip |
FULLPIPE: Implement Statics::init()
Diffstat (limited to 'engines/fullpipe/statics.cpp')
-rw-r--r-- | engines/fullpipe/statics.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp index 03cbc8ecd5..e31267fda9 100644 --- a/engines/fullpipe/statics.cpp +++ b/engines/fullpipe/statics.cpp @@ -1440,6 +1440,19 @@ bool Statics::load(MfcArchive &file) { return true; } +void Statics::init() { + Picture::init(); + + if (_staticsId & 0x4000) { + Bitmap *bmp = _bitmap->reverseImage(); + + freePixelData(); + + _bitmap = bmp; + _data = bmp->_pixels; + } +} + Common::Point *Statics::getSomeXY(Common::Point &p) { p.x = _someX; p.y = _someY; |