aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/tattoo_map.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-21 20:19:55 -0400
committerPaul Gilbert2016-03-21 20:19:55 -0400
commit8fa5522819229628f9f43e542a90245380f5edf5 (patch)
treeda464a2a615264d9d478c86dedb4d9ad4e3a4d73 /engines/sherlock/tattoo/tattoo_map.cpp
parentc299b8ce08630d3471336cb8a5715fcffab791f8 (diff)
downloadscummvm-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/tattoo_map.cpp')
-rw-r--r--engines/sherlock/tattoo/tattoo_map.cpp2
1 files changed, 2 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;
}