aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/monitor.cpp
diff options
context:
space:
mode:
authorMax Horn2011-12-07 10:40:17 +0100
committerMax Horn2011-12-07 11:07:10 +0100
commitbd71a3bcec6c4bda9906b1e5818713ab9d40ccae (patch)
tree297bdcb5eece06c7fe5ad02c6c12bdd453ddee91 /engines/dreamweb/monitor.cpp
parent6161d7906efc1a99c05aeef91e60bcc44aeb8ac4 (diff)
downloadscummvm-rg350-bd71a3bcec6c4bda9906b1e5818713ab9d40ccae.tar.gz
scummvm-rg350-bd71a3bcec6c4bda9906b1e5818713ab9d40ccae.tar.bz2
scummvm-rg350-bd71a3bcec6c4bda9906b1e5818713ab9d40ccae.zip
DREAMWEB: Replace cs by data (outside of dreamgen.cpp)
Diffstat (limited to 'engines/dreamweb/monitor.cpp')
-rw-r--r--engines/dreamweb/monitor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/dreamweb/monitor.cpp b/engines/dreamweb/monitor.cpp
index c813037ddb..f552b71c00 100644
--- a/engines/dreamweb/monitor.cpp
+++ b/engines/dreamweb/monitor.cpp
@@ -32,10 +32,10 @@ struct MonitorKeyEntry {
void DreamGenContext::useMon() {
data.byte(kLasttrigger) = 0;
- memset(cs.ptr(kCurrentfile+1, 0), ' ', 12);
- memset(cs.ptr(offset_operand1+1, 0), ' ', 12);
+ memset(data.ptr(kCurrentfile+1, 0), ' ', 12);
+ memset(data.ptr(offset_operand1+1, 0), ' ', 12);
- MonitorKeyEntry *monitorKeyEntries = (MonitorKeyEntry *)cs.ptr(offset_keys, 0);
+ MonitorKeyEntry *monitorKeyEntries = (MonitorKeyEntry *)data.ptr(offset_keys, 0);
monitorKeyEntries[0].b0 = 1;
monitorKeyEntries[1].b0 = 0;
monitorKeyEntries[2].b0 = 0;
@@ -103,7 +103,7 @@ void DreamGenContext::printLogo() {
}
void DreamGenContext::input() {
- char *inputLine = (char *)cs.ptr(kInputline, 64);
+ char *inputLine = (char *)data.ptr(kInputline, 64);
memset(inputLine, 0, 64);
data.word(kCurpos) = 0;
printChar(engine->tempCharset(), data.word(kMonadx), data.word(kMonady), '>', 0, NULL, NULL);
@@ -149,7 +149,7 @@ void DreamGenContext::input() {
}
void DreamGenContext::delChar() {
- char *inputLine = (char *)cs.ptr(kInputline, 0);
+ char *inputLine = (char *)data.ptr(kInputline, 0);
--data.word(kCurpos);
inputLine[data.word(kCurpos) * 2] = 0;
uint8 width = inputLine[data.word(kCurpos) * 2 + 1];
@@ -204,7 +204,7 @@ void DreamGenContext::scrollMonitor() {
void DreamGenContext::showCurrentFile() {
uint16 x = 178; // TODO: Looks like this hardcoded constant in the asm doesn't match the frame
- const char *currentFile = (const char *)cs.ptr(kCurrentfile+1, 0);
+ const char *currentFile = (const char *)data.ptr(kCurrentfile+1, 0);
while (*currentFile) {
char c = *currentFile++;
c = engine->modifyChar(c);