From 46b80d3e7474a57959758e6681fd65fbe0216f34 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 29 Jul 2015 22:02:54 -0400 Subject: SHERLOCK: RT: Fix redrawing journal when page is changed --- engines/sherlock/tattoo/tattoo_journal.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines/sherlock/tattoo/tattoo_journal.cpp') diff --git a/engines/sherlock/tattoo/tattoo_journal.cpp b/engines/sherlock/tattoo/tattoo_journal.cpp index cd8a94a884..737593fa74 100644 --- a/engines/sherlock/tattoo/tattoo_journal.cpp +++ b/engines/sherlock/tattoo/tattoo_journal.cpp @@ -99,6 +99,7 @@ void TattooJournal::show() { // Free the images delete _journalImages; + _journalImages = nullptr; // Reset back to whatever scroll was active for the screen screen._currentScroll = oldScroll; @@ -155,7 +156,7 @@ void TattooJournal::handleKeyboardEvents() { // Scroll Up 1 page drawJournal(1, LINES_PER_PAGE); drawScrollBar(); - show(); + drawJournal(0, 0); screen.slamArea(0, 0, SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCREEN_HEIGHT); _wait = false; } @@ -179,7 +180,7 @@ void TattooJournal::handleKeyboardEvents() { // Scroll down 1 page drawJournal(2, LINES_PER_PAGE); drawScrollBar(); - show(); + drawJournal(0, 0); screen.slamArea(0, 0, SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCREEN_HEIGHT); _wait = false; @@ -273,7 +274,7 @@ void TattooJournal::handleButtons() { else drawJournal(1, 10 * LINES_PER_PAGE); drawScrollBar(); - show(); + drawJournal(0, 0); screen.slamArea(0, 0, SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCREEN_HEIGHT); _wait = false; } -- cgit v1.2.3