Skip to content

Commit

Permalink
DREAMWEB: 'showpanel' ported to C++
Browse files Browse the repository at this point in the history
  • Loading branch information
tramboi committed Aug 15, 2011
1 parent 03e222f commit 73d7ff3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 19 deletions.
1 change: 1 addition & 0 deletions devtools/tasmrecover/tasm-recover
Expand Up @@ -110,6 +110,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'findobname',
'copyname',
'commandwithob',
'showpanel',
], skip_output = [
# These functions are processed but not output
'dreamweb',
Expand Down
17 changes: 0 additions & 17 deletions engines/dreamweb/dreamgen.cpp
Expand Up @@ -17445,22 +17445,6 @@ void DreamGenContext::showman() {
showframe();
}

void DreamGenContext::showpanel() {
STACK_CHECK;
ds = data.word(kIcons1);
di = 72;
bx = 0;
al = 19;
ah = 0;
showframe();
ds = data.word(kIcons1);
di = 192;
bx = 0;
al = 19;
ah = 0;
showframe();
}

void DreamGenContext::roomname() {
STACK_CHECK;
di = 88;
Expand Down Expand Up @@ -19763,7 +19747,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) {
case addr_showicon: showicon(); break;
case addr_middlepanel: middlepanel(); break;
case addr_showman: showman(); break;
case addr_showpanel: showpanel(); break;
case addr_roomname: roomname(); break;
case addr_usecharset1: usecharset1(); break;
case addr_usetempcharset: usetempcharset(); break;
Expand Down
3 changes: 1 addition & 2 deletions engines/dreamweb/dreamgen.h
Expand Up @@ -111,7 +111,6 @@ class DreamGenContext : public Context {
static const uint16 addr_usetempcharset = 0xca7c;
static const uint16 addr_usecharset1 = 0xca78;
static const uint16 addr_roomname = 0xca74;
static const uint16 addr_showpanel = 0xca70;
static const uint16 addr_showman = 0xca6c;
static const uint16 addr_middlepanel = 0xca68;
static const uint16 addr_showicon = 0xca64;
Expand Down Expand Up @@ -1393,7 +1392,7 @@ class DreamGenContext : public Context {
void getpersframe();
void doshake();
void resetkeyboard();
void showpanel();
//void showpanel();
void soundstartup();
void slabdoora();
void fadeupyellows();
Expand Down
7 changes: 7 additions & 0 deletions engines/dreamweb/stubs.cpp
Expand Up @@ -1064,5 +1064,12 @@ void DreamGenContext::commandwithob(uint8 command, uint8 type, uint8 index) {
data.byte(kNewtextline) = 1;
}

void DreamGenContext::showpanel() {
Frame *frame = (Frame *)segRef(data.word(kIcons1)).ptr(0, sizeof(Frame));
uint8 width, height;
showframe(frame, 72, 0, 19, 0, &width, &height);
showframe(frame, 192, 0, 19, 0, &width, &height);
}

} /*namespace dreamgen */

2 changes: 2 additions & 0 deletions engines/dreamweb/stubs.h
Expand Up @@ -126,4 +126,6 @@
void copyname(uint8 type, uint8 index, uint8 *dst);
void commandwithob();
void commandwithob(uint8 command, uint8 type, uint8 index);
void showpanel();


0 comments on commit 73d7ff3

Please sign in to comment.