Skip to content

Commit

Permalink
DREAMWEB: 'printcurs', 'delcurs' and 'hangoncurs' moved to monitor.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
tramboi committed Nov 18, 2011
1 parent 26dd3f5 commit 9f1faeb
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
34 changes: 34 additions & 0 deletions engines/dreamweb/monitor.cpp
Expand Up @@ -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 */

34 changes: 0 additions & 34 deletions engines/dreamweb/stubs.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 9f1faeb

Please sign in to comment.