diff options
author | Paul Gilbert | 2015-06-25 20:42:02 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-06-25 20:42:02 -0400 |
commit | 92ac962718b07e9b82199d39bb5ce970717da57d (patch) | |
tree | 88e8833f5ef8d100c32cda7a0c5cd18051a2308a /engines/sherlock/scalpel/scalpel_journal.cpp | |
parent | 66fb4b828ba841b47b3e0cd4e15e00107744f691 (diff) | |
download | scummvm-rg350-92ac962718b07e9b82199d39bb5ce970717da57d.tar.gz scummvm-rg350-92ac962718b07e9b82199d39bb5ce970717da57d.tar.bz2 scummvm-rg350-92ac962718b07e9b82199d39bb5ce970717da57d.zip |
SHERLOCK: RT: Further split-off of Scalpel-specific code
Diffstat (limited to 'engines/sherlock/scalpel/scalpel_journal.cpp')
-rw-r--r-- | engines/sherlock/scalpel/scalpel_journal.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/sherlock/scalpel/scalpel_journal.cpp b/engines/sherlock/scalpel/scalpel_journal.cpp index 12ebe6f0f2..8bb74e977d 100644 --- a/engines/sherlock/scalpel/scalpel_journal.cpp +++ b/engines/sherlock/scalpel/scalpel_journal.cpp @@ -23,6 +23,8 @@ #include "sherlock/journal.h" #include "sherlock/sherlock.h" #include "sherlock/scalpel/scalpel_journal.h" +#include "sherlock/scalpel/scalpel_screen.h" +#include "sherlock/scalpel/scalpel.h" #include "sherlock/tattoo/tattoo_journal.h" namespace Sherlock { @@ -147,7 +149,7 @@ void ScalpelJournal::loadLocations() { void ScalpelJournal::drawFrame() { FixedText &fixedText = *_vm->_fixedText; Resources &res = *_vm->_res; - Screen &screen = *_vm->_screen; + ScalpelScreen &screen = *(ScalpelScreen *)_vm->_screen; byte palette[PALETTE_SIZE]; // Load in the journal background @@ -211,7 +213,7 @@ void ScalpelJournal::drawFrame() { } void ScalpelJournal::drawInterface() { - Screen &screen = *_vm->_screen; + ScalpelScreen &screen = *(ScalpelScreen *)_vm->_screen; drawFrame(); @@ -229,7 +231,7 @@ void ScalpelJournal::drawInterface() { void ScalpelJournal::doArrows() { FixedText &fixedText = *_vm->_fixedText; - Screen &screen = *_vm->_screen; + ScalpelScreen &screen = *(ScalpelScreen *)_vm->_screen; byte color; Common::String fixedText_Back10 = fixedText.getText(kFixedText_Journal_Back10); @@ -301,7 +303,7 @@ JournalButton ScalpelJournal::getHighlightedButton(const Common::Point &pt) { bool ScalpelJournal::handleEvents(int key) { Events &events = *_vm->_events; FixedText &fixedText = *_vm->_fixedText; - Screen &screen = *_vm->_screen; + ScalpelScreen &screen = *(ScalpelScreen *)_vm->_screen; bool doneFlag = false; Common::Point pt = events.mousePos(); @@ -484,7 +486,7 @@ int ScalpelJournal::getSearchString(bool printError) { Events &events = *_vm->_events; FixedText &fixedText = *_vm->_fixedText; - Screen &screen = *_vm->_screen; + ScalpelScreen &screen = *(ScalpelScreen *)_vm->_screen; Talk &talk = *_vm->_talk; int xp; int yp = 174; |