diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 20 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.h | 3 | ||||
-rw-r--r-- | engines/dreamweb/stubs.h | 1 | ||||
-rw-r--r-- | engines/dreamweb/vgafades.cpp | 11 |
4 files changed, 13 insertions, 22 deletions
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 */ |