aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/stubs.cpp
diff options
context:
space:
mode:
authorBertrand Augereau2011-11-18 06:17:23 +0100
committerBertrand Augereau2011-11-18 06:25:54 +0100
commit5461b03983a58ba63b2a86cc6042d9a99cb771f4 (patch)
treeffe8e0737cbc35c4d57ac8420872a0ec893ff3c0 /engines/dreamweb/stubs.cpp
parentcfac223cee7cc8136fdf43dea1465a1b060a803b (diff)
downloadscummvm-rg350-5461b03983a58ba63b2a86cc6042d9a99cb771f4.tar.gz
scummvm-rg350-5461b03983a58ba63b2a86cc6042d9a99cb771f4.tar.bz2
scummvm-rg350-5461b03983a58ba63b2a86cc6042d9a99cb771f4.zip
DREAMWEB: 'delcurs' ported to C++
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r--engines/dreamweb/stubs.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index eb8f2b8218..f8f3be9d01 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -270,6 +270,20 @@ void DreamGenContext::printcurs() {
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(segRef(data.word(kBuffers)).ptr(kTextunder, 0), x, y, width, height);
+ multidump(x, y, width, height);
+}
+
void DreamGenContext::seecommandtail() {
data.word(kSoundbaseadd) = 0x220;
data.byte(kSoundint) = 5;