diff options
author | Bertrand Augereau | 2011-11-18 08:27:21 +0100 |
---|---|---|
committer | Bertrand Augereau | 2011-11-18 08:27:21 +0100 |
commit | 9f1faeb1ab016f6bf8b033cf3cd1d2c49b4d0748 (patch) | |
tree | 73e317b5f46235198d3bb1af1797a752fdccae09 /engines/dreamweb | |
parent | 26dd3f52f21d71f3fe054a5cb917639d93b598a4 (diff) | |
download | scummvm-rg350-9f1faeb1ab016f6bf8b033cf3cd1d2c49b4d0748.tar.gz scummvm-rg350-9f1faeb1ab016f6bf8b033cf3cd1d2c49b4d0748.tar.bz2 scummvm-rg350-9f1faeb1ab016f6bf8b033cf3cd1d2c49b4d0748.zip |
DREAMWEB: 'printcurs', 'delcurs' and 'hangoncurs' moved to monitor.cpp
Diffstat (limited to 'engines/dreamweb')
-rw-r--r-- | engines/dreamweb/monitor.cpp | 34 | ||||
-rw-r--r-- | engines/dreamweb/stubs.cpp | 34 |
2 files changed, 34 insertions, 34 deletions
diff --git a/engines/dreamweb/monitor.cpp b/engines/dreamweb/monitor.cpp index 5da481a60f..4386e1a8a3 100644 --- a/engines/dreamweb/monitor.cpp +++ b/engines/dreamweb/monitor.cpp @@ -158,5 +158,39 @@ void DreamGenContext::input() { } } +void DreamGenContext::printcurs() { + uint16 x = data.word(kCurslocx); + uint16 y = data.word(kCurslocy); + uint16 height; + if (data.byte(kForeignrelease)) { + y -= 3; + height = 11; + } else + height = 8; + multiget(textUnder(), x, y, 6, height); + ++data.word(kMaintimer); + if ((data.word(kMaintimer) & 16) == 0) + showframe((Frame *)segRef(data.word(kTempcharset)).ptr(0, 0), x, y, '/' - 32, 0); + multidump(x - 6, y, 12, height); +} + +void DreamGenContext::delcurs() { + uint16 x = data.word(kCurslocx); + uint16 y = data.word(kCurslocy); + uint16 width = 6; + uint16 height; + if (data.byte(kForeignrelease)) { + y -= 3; + height = 11; + } else + height = 8; + multiput(textUnder(), x, y, width, height); + multidump(x, y, width, height); +} + +void DreamGenContext::hangoncurs() { + hangoncurs(cx); +} + } /*namespace dreamgen */ diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 2c0c8eca32..0daba39183 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -258,40 +258,6 @@ void DreamGenContext::loadtempcharset(const char *fileName) { data.word(kTempcharset) = standardload(fileName); } -void DreamGenContext::printcurs() { - uint16 x = data.word(kCurslocx); - uint16 y = data.word(kCurslocy); - uint16 height; - if (data.byte(kForeignrelease)) { - y -= 3; - height = 11; - } else - height = 8; - multiget(textUnder(), x, y, 6, height); - ++data.word(kMaintimer); - if ((data.word(kMaintimer) & 16) == 0) - showframe((Frame *)segRef(data.word(kTempcharset)).ptr(0, 0), x, y, '/' - 32, 0); - multidump(x - 6, y, 12, height); -} - -void DreamGenContext::delcurs() { - uint16 x = data.word(kCurslocx); - uint16 y = data.word(kCurslocy); - uint16 width = 6; - uint16 height; - if (data.byte(kForeignrelease)) { - y -= 3; - height = 11; - } else - height = 8; - multiput(textUnder(), x, y, width, height); - multidump(x, y, width, height); -} - -void DreamGenContext::hangoncurs() { - hangoncurs(cx); -} - void DreamGenContext::hangoncurs(uint16 frameCount) { for (uint16 i = 0; i < frameCount; ++i) { printcurs(); |