diff options
author | Paul Gilbert | 2015-07-26 21:15:57 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-07-26 21:15:57 -0400 |
commit | c2d13695463bd6e98910a3fac6d42853cc29a668 (patch) | |
tree | 4bbcaca57185f1b13c4299cb253451480d898a10 /engines/sherlock/tattoo/tattoo_scene.cpp | |
parent | 20a067a66266ab63270b65994a8ab35ff398c7d2 (diff) | |
download | scummvm-rg350-c2d13695463bd6e98910a3fac6d42853cc29a668.tar.gz scummvm-rg350-c2d13695463bd6e98910a3fac6d42853cc29a668.tar.bz2 scummvm-rg350-c2d13695463bd6e98910a3fac6d42853cc29a668.zip |
SHERLOCK: RT: Stop windows from going off-screen to the right
Diffstat (limited to 'engines/sherlock/tattoo/tattoo_scene.cpp')
-rw-r--r-- | engines/sherlock/tattoo/tattoo_scene.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/tattoo_scene.cpp b/engines/sherlock/tattoo/tattoo_scene.cpp index 2a90a51bec..1ecc997f42 100644 --- a/engines/sherlock/tattoo/tattoo_scene.cpp +++ b/engines/sherlock/tattoo/tattoo_scene.cpp @@ -292,6 +292,15 @@ void TattooScene::checkBgShapes() { } } +void TattooScene::freeScene() { + TattooUserInterface &ui = *(TattooUserInterface *)_vm->_ui; + Scene::freeScene(); + + delete ui._mask; + delete ui._mask1; + ui._mask = ui._mask1 = nullptr; +} + void TattooScene::doBgAnimCheckCursor() { Events &events = *_vm->_events; TattooUserInterface &ui = *(TattooUserInterface *)_vm->_ui; |