diff options
author | Bertrand Augereau | 2011-11-20 14:06:48 +0100 |
---|---|---|
committer | Bertrand Augereau | 2011-11-20 14:18:27 +0100 |
commit | 3d16344e99b3a886e25735d60ebe89895d3e7316 (patch) | |
tree | c662cde51b04e4c54ff35e553f73b6638a5bbf42 /engines/dreamweb | |
parent | f0ccf111f2fc348caf2e3fefe422c085d6352def (diff) | |
download | scummvm-rg350-3d16344e99b3a886e25735d60ebe89895d3e7316.tar.gz scummvm-rg350-3d16344e99b3a886e25735d60ebe89895d3e7316.tar.bz2 scummvm-rg350-3d16344e99b3a886e25735d60ebe89895d3e7316.zip |
DREAMWEB: Accessors for kTempGraphics
Diffstat (limited to 'engines/dreamweb')
-rw-r--r-- | engines/dreamweb/monitor.cpp | 6 | ||||
-rw-r--r-- | engines/dreamweb/stubs.cpp | 17 | ||||
-rw-r--r-- | engines/dreamweb/stubs.h | 3 |
3 files changed, 20 insertions, 6 deletions
diff --git a/engines/dreamweb/monitor.cpp b/engines/dreamweb/monitor.cpp index d13b7233e3..cc6ae07147 100644 --- a/engines/dreamweb/monitor.cpp +++ b/engines/dreamweb/monitor.cpp @@ -103,7 +103,7 @@ void DreamGenContext::usemon() { } void DreamGenContext::printlogo() { - showframe((Frame *)segRef(data.word(kTempgraphics)).ptr(0, 0), 56, 32, 0, 0); + showframe(tempGraphics(), 56, 32, 0, 0); showcurrentfile(); } @@ -206,12 +206,12 @@ void DreamGenContext::showcurrentfile() { } void DreamGenContext::accesslighton() { - showframe((Frame *)segRef(data.word(kTempgraphics)).ptr(0, 0), 74, 182, 8, 0); + showframe(tempGraphics(), 74, 182, 8, 0); multidump(74, 182, 12, 8); } void DreamGenContext::accesslightoff() { - showframe((Frame *)segRef(data.word(kTempgraphics)).ptr(0, 0), 74, 182, 7, 0); + showframe(tempGraphics(), 74, 182, 7, 0); multidump(74, 182, 12, 8); } diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 7e2e185818..850b746518 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -1973,9 +1973,8 @@ void DreamGenContext::sortoutmap() { void DreamGenContext::showcity() { clearwork(); - Frame *tempGraphics = (Frame *)segRef(data.word(kTempgraphics)).ptr(0, 0); - showframe(tempGraphics, 57, 32, 0, 0); - showframe(tempGraphics, 120+57, 32, 1, 0); + showframe(tempGraphics(), 57, 32, 0, 0); + showframe(tempGraphics(), 120+57, 32, 1, 0); } void DreamGenContext::mainscreen() { @@ -2129,5 +2128,17 @@ void DreamGenContext::readsetdata() { engine->closeFile(); } +Frame * DreamGenContext::tempGraphics() { + return (Frame *)segRef(data.word(kTempgraphics)).ptr(0, 0); +} + +Frame * DreamGenContext::tempGraphics2() { + return (Frame *)segRef(data.word(kTempgraphics2)).ptr(0, 0); +} + +Frame * DreamGenContext::tempGraphics3() { + return (Frame *)segRef(data.word(kTempgraphics3)).ptr(0, 0); +} + } /*namespace dreamgen */ diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h index edd4e21b89..2a84492003 100644 --- a/engines/dreamweb/stubs.h +++ b/engines/dreamweb/stubs.h @@ -304,6 +304,9 @@ void input(); void monprint(); const char *monprint(const char *string); + Frame *tempGraphics(); + Frame *tempGraphics2(); + Frame *tempGraphics3(); void accesslighton(); void accesslightoff(); |