Skip to content

Commit

Permalink
DREAMWEB: 'showOuterPad' ported to C++
Browse files Browse the repository at this point in the history
  • Loading branch information
tramboi committed Dec 3, 2011
1 parent 38098a0 commit a02457a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 20 deletions.
1 change: 1 addition & 0 deletions devtools/tasmrecover/tasm-recover
Expand Up @@ -343,6 +343,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'sparky',
'singlekey',
'showkeypad',
'showouterpad',
'buttonone',
'buttontwo',
'buttonthree',
Expand Down
16 changes: 0 additions & 16 deletions engines/dreamweb/dreamgen.cpp
Expand Up @@ -9152,22 +9152,6 @@ void DreamGenContext::quitKey() {
data.byte(kGetback) = 1;
}

void DreamGenContext::showOuterPad() {
STACK_CHECK;
di = (36+112)-3;
bx = (72)-4;
ds = data.word(kTempgraphics);
al = 1;
ah = 0;
showFrame();
di = (36+112)+74;
bx = (72)+76;
ds = data.word(kTempgraphics);
al = 37;
ah = 0;
showFrame();
}

void DreamGenContext::dumpKeypad() {
STACK_CHECK;
di = (36+112)-3;
Expand Down
7 changes: 3 additions & 4 deletions engines/dreamweb/dreamgen.h
Expand Up @@ -697,7 +697,7 @@ class DreamGenContext : public Context {
void useElevator5();
void useElevator4();
void useElevator1();
void useElevator3();
void greyscaleSum();
void useElevator2();
void keyboardRead();
void getOpenedSize();
Expand Down Expand Up @@ -811,7 +811,7 @@ class DreamGenContext : public Context {
void getRidOfTemp();
void dumpSymbol();
void intro2Text();
void showOuterPad();
void interviewer();
void getKeyAndLogo();
void selectOb();
void usePlinth();
Expand Down Expand Up @@ -851,7 +851,6 @@ class DreamGenContext : public Context {
void showMonk();
void diaryKeyN();
void set16ColPalette();
void interviewer();
void purgeAnItem();
void madman();
void enableSoundInt();
Expand Down Expand Up @@ -997,7 +996,7 @@ class DreamGenContext : public Context {
void openFile();
void showPuzText();
void incRyanPage();
void greyscaleSum();
void useElevator3();
void findExObject();
void clearChanges();
void useChurchHole();
Expand Down
5 changes: 5 additions & 0 deletions engines/dreamweb/keypad.cpp
Expand Up @@ -223,5 +223,10 @@ void DreamGenContext::buttonPress(uint8 buttonId) {
}
}

void DreamGenContext::showOuterPad() {
showFrame(tempGraphics(), kKeypadx-3, kKeypady-4, 1, 0);
showFrame(tempGraphics(), kKeypadx+74, kKeypady+76, 37, 0);
}

} /*namespace dreamgen */

1 change: 1 addition & 0 deletions engines/dreamweb/stubs.h
Expand Up @@ -384,6 +384,7 @@
void sparky(ReelRoutine &routine);
void singleKey(uint8 key, uint16 x, uint16 y);
void showKeypad();
void showOuterPad();
void buttonOne();
void buttonTwo();
void buttonThree();
Expand Down

0 comments on commit a02457a

Please sign in to comment.