aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-11 19:21:17 -0400
committerPaul Gilbert2015-06-11 19:21:17 -0400
commit27aa19bca78fe921127bc5b547ea0da0aaf7ea74 (patch)
tree31be111856d5a015f40f0048c110d12d1d82e75e
parent16b65badc06b60d434f5f7bb0781b324f567e18c (diff)
downloadscummvm-rg350-27aa19bca78fe921127bc5b547ea0da0aaf7ea74.tar.gz
scummvm-rg350-27aa19bca78fe921127bc5b547ea0da0aaf7ea74.tar.bz2
scummvm-rg350-27aa19bca78fe921127bc5b547ea0da0aaf7ea74.zip
SHERLOCK: Fix memory corruption when displaying map
-rw-r--r--engines/sherlock/tattoo/tattoo_scene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/tattoo/tattoo_scene.cpp b/engines/sherlock/tattoo/tattoo_scene.cpp
index eaabcfc64b..fa37f67f66 100644
--- a/engines/sherlock/tattoo/tattoo_scene.cpp
+++ b/engines/sherlock/tattoo/tattoo_scene.cpp
@@ -130,7 +130,7 @@ void TattooScene::drawAllShapes() {
screen._backBuffer1.transBlitFrom(*_activeCAnim._imageFrame, _activeCAnim._position,
(_activeCAnim._flags & 4) >> 1, 0, _activeCAnim._scaleVal);
- screen.setDisplayBounds(Common::Rect(0, 0, screen._backBuffer1.w(), screen._backBuffer1.h()));
+ screen.resetDisplayBounds();
// Queue drawing of all objects that are set to NORMAL.
for (uint idx = 0; idx < _bgShapes.size(); ++idx) {