aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-29 22:02:54 -0400
committerPaul Gilbert2015-07-29 22:02:54 -0400
commit46b80d3e7474a57959758e6681fd65fbe0216f34 (patch)
tree0819aa114e0c13d0dca1b11ebc427b2040a58478 /engines/sherlock/tattoo
parent9e5bd8609f04429ceaa218d1e5560e0d2d87c586 (diff)
downloadscummvm-rg350-46b80d3e7474a57959758e6681fd65fbe0216f34.tar.gz
scummvm-rg350-46b80d3e7474a57959758e6681fd65fbe0216f34.tar.bz2
scummvm-rg350-46b80d3e7474a57959758e6681fd65fbe0216f34.zip
SHERLOCK: RT: Fix redrawing journal when page is changed
Diffstat (limited to 'engines/sherlock/tattoo')
-rw-r--r--engines/sherlock/tattoo/tattoo_journal.cpp7
1 files changed, 4 insertions, 3 deletions
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;
}