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/monitor.cpp | |
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/monitor.cpp')
-rw-r--r-- | engines/dreamweb/monitor.cpp | 34 |
1 files changed, 34 insertions, 0 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 */ |