diff options
author | Paul Gilbert | 2016-03-21 20:19:55 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-21 20:19:55 -0400 |
commit | 8fa5522819229628f9f43e542a90245380f5edf5 (patch) | |
tree | da464a2a615264d9d478c86dedb4d9ad4e3a4d73 /engines/sherlock/tattoo | |
parent | c299b8ce08630d3471336cb8a5715fcffab791f8 (diff) | |
download | scummvm-rg350-8fa5522819229628f9f43e542a90245380f5edf5.tar.gz scummvm-rg350-8fa5522819229628f9f43e542a90245380f5edf5.tar.bz2 scummvm-rg350-8fa5522819229628f9f43e542a90245380f5edf5.zip |
SHERLOCK: Fix crashes due to back buffer refactoring
Diffstat (limited to 'engines/sherlock/tattoo')
-rw-r--r-- | engines/sherlock/tattoo/tattoo_map.cpp | 2 | ||||
-rw-r--r-- | engines/sherlock/tattoo/tattoo_screen.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/tattoo_map.cpp b/engines/sherlock/tattoo/tattoo_map.cpp index 0839e46260..23e8bd9739 100644 --- a/engines/sherlock/tattoo/tattoo_map.cpp +++ b/engines/sherlock/tattoo/tattoo_map.cpp @@ -106,6 +106,7 @@ int TattooMap::show() { ImageFile *map = new ImageFile("map.vgs"); screen._backBuffer1.create(SHERLOCK_SCREEN_WIDTH * 2, SHERLOCK_SCREEN_HEIGHT * 2); screen._backBuffer1.SHblitFrom((*map)[0], Common::Point(0, 0)); + screen.activateBackBuffer1(); delete map; screen.clear(); @@ -224,6 +225,7 @@ int TattooMap::show() { // Reset the back buffers back to standard size screen._backBuffer1.create(SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCREEN_HEIGHT); screen._backBuffer2.create(SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCREEN_HEIGHT); + screen.activateBackBuffer1(); return result; } diff --git a/engines/sherlock/tattoo/tattoo_screen.cpp b/engines/sherlock/tattoo/tattoo_screen.cpp index c98ae2679d..159060b19e 100644 --- a/engines/sherlock/tattoo/tattoo_screen.cpp +++ b/engines/sherlock/tattoo/tattoo_screen.cpp @@ -30,6 +30,7 @@ namespace Tattoo { TattooScreen::TattooScreen(SherlockEngine *vm) : Screen(vm) { _backBuffer1.create(640, 480); _backBuffer2.create(640, 480); + activateBackBuffer1(); } } // End of namespace Tattoo |