aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Augereau2011-11-18 06:43:32 +0100
committerBertrand Augereau2011-11-18 06:46:58 +0100
commit37052c17622eea7d9546f724c6fbbd8127977531 (patch)
tree5da6829b3fa5f33d9dc7f024481c9e584950618a
parentbb63c3f7539accdd332bffd19c3e069380f4205e (diff)
downloadscummvm-rg350-37052c17622eea7d9546f724c6fbbd8127977531.tar.gz
scummvm-rg350-37052c17622eea7d9546f724c6fbbd8127977531.tar.bz2
scummvm-rg350-37052c17622eea7d9546f724c6fbbd8127977531.zip
DREAMWEB: 'fadeupyellows' ported to C++
-rwxr-xr-xdevtools/tasmrecover/tasm-recover1
-rw-r--r--engines/dreamweb/dreamgen.cpp20
-rw-r--r--engines/dreamweb/dreamgen.h3
-rw-r--r--engines/dreamweb/stubs.h1
-rw-r--r--engines/dreamweb/vgafades.cpp11
5 files changed, 14 insertions, 22 deletions
diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover
index 7d02cfa064..1d7617dffa 100755
--- a/devtools/tasmrecover/tasm-recover
+++ b/devtools/tasmrecover/tasm-recover
@@ -241,6 +241,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'printcurs',
'delcurs',
'hangoncurs',
+ 'fadeupyellows',
'loadroomssample',
], skip_output = [
# These functions are processed but not output
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index edbc18435c..f7291bca17 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -2769,25 +2769,6 @@ void DreamGenContext::fadeupmonfirst() {
hangon();
}
-void DreamGenContext::fadeupyellows() {
- STACK_CHECK;
- paltoendpal();
- es = data.word(kBuffers);
- di = (0+(228*13)+32+60+(32*32)+(11*10*3)+768)+(231*3);
- cx = 3*8;
- ax = 0;
- _stosb(cx, true);
- di = (0+(228*13)+32+60+(32*32)+(11*10*3)+768)+(246*3);
- _stosb();
- _stosw();
- data.byte(kFadedirection) = 1;
- data.byte(kFadecount) = 63;
- data.byte(kColourpos) = 0;
- data.byte(kNumtofade) = 128;
- cx = 128;
- hangon();
-}
-
void DreamGenContext::initialmoncols() {
STACK_CHECK;
paltostartpal();
@@ -15503,7 +15484,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) {
case addr_fadedownmon: fadedownmon(); break;
case addr_fadeupmon: fadeupmon(); break;
case addr_fadeupmonfirst: fadeupmonfirst(); break;
- case addr_fadeupyellows: fadeupyellows(); break;
case addr_initialmoncols: initialmoncols(); break;
case addr_titles: titles(); break;
case addr_endgame: endgame(); break;
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index bfd83d72b6..1d095b9170 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -474,7 +474,6 @@ public:
static const uint16 addr_endgame = 0xc2c4;
static const uint16 addr_titles = 0xc2c0;
static const uint16 addr_initialmoncols = 0xc2bc;
- static const uint16 addr_fadeupyellows = 0xc2b8;
static const uint16 addr_fadeupmonfirst = 0xc2b4;
static const uint16 addr_fadeupmon = 0xc2b0;
static const uint16 addr_fadedownmon = 0xc2ac;
@@ -1309,7 +1308,7 @@ public:
//void showpanel();
void soundstartup();
void slabdoora();
- void fadeupyellows();
+ //void fadeupyellows();
void slabdoorc();
void slabdoorb();
void slabdoore();
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index f367486a6e..7aa5d7d919 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -292,4 +292,5 @@
void textforend();
void readsetdata();
void loadroomssample();
+ void fadeupyellows();
diff --git a/engines/dreamweb/vgafades.cpp b/engines/dreamweb/vgafades.cpp
index 10857d2b44..ef03831997 100644
--- a/engines/dreamweb/vgafades.cpp
+++ b/engines/dreamweb/vgafades.cpp
@@ -83,5 +83,16 @@ void DreamGenContext::fadecalculation() {
--data.byte(kFadecount);
}
+void DreamGenContext::fadeupyellows() {
+ paltoendpal();
+ memset(endPalette() + 231*3, 0, 8*3);
+ memset(endPalette() + 246*3, 0, 1*3);
+ data.byte(kFadedirection) = 1;
+ data.byte(kFadecount) = 63;
+ data.byte(kColourpos) = 0;
+ data.byte(kNumtofade) = 128;
+ hangon(128);
+}
+
} /*namespace dreamgen */