aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-26 15:31:42 -0400
committerPaul Gilbert2015-07-26 15:31:42 -0400
commit3e0ba9feee2a9b1be641d8310ee7ee500ad2f554 (patch)
treece7082be4441a9e5242605ebb656595d28e05376 /engines/sherlock
parentfa51095f7c213e0442410f88677a77f36d6b511c (diff)
downloadscummvm-rg350-3e0ba9feee2a9b1be641d8310ee7ee500ad2f554.tar.gz
scummvm-rg350-3e0ba9feee2a9b1be641d8310ee7ee500ad2f554.tar.bz2
scummvm-rg350-3e0ba9feee2a9b1be641d8310ee7ee500ad2f554.zip
SHERLOCK: RT: Fix showing Journal when in a scrolled scene
Diffstat (limited to 'engines/sherlock')
-rw-r--r--engines/sherlock/tattoo/tattoo_journal.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/tattoo_journal.cpp b/engines/sherlock/tattoo/tattoo_journal.cpp
index 6df5ee7458..6c33971357 100644
--- a/engines/sherlock/tattoo/tattoo_journal.cpp
+++ b/engines/sherlock/tattoo/tattoo_journal.cpp
@@ -49,6 +49,9 @@ void TattooJournal::show() {
Screen &screen = *_vm->_screen;
TattooUserInterface &ui = *(TattooUserInterface *)_vm->_ui;
byte palette[PALETTE_SIZE];
+
+ Common::Point oldScroll = screen._currentScroll;
+ screen._currentScroll = Common::Point(0, 0);
// Load journal images
_journalImages = new ImageFile("journal.vgs");
@@ -95,6 +98,9 @@ void TattooJournal::show() {
// Free the images
delete _journalImages;
+
+ // Reset back to whatever scroll was active for the screen
+ screen._currentScroll = oldScroll;
}
void TattooJournal::handleKeyboardEvents() {