diff options
author | Bertrand Augereau | 2011-11-16 17:56:06 +0100 |
---|---|---|
committer | Bertrand Augereau | 2011-11-16 17:56:06 +0100 |
commit | 6e90f9e6938c9727a3dbb552b74f0d40d0ab221f (patch) | |
tree | cfc9519e568e76963cf1026823c671eb6f5f91af /engines/dreamweb | |
parent | 1ef77a580fe382f002dad6d0ae38ab43e4d2540b (diff) | |
download | scummvm-rg350-6e90f9e6938c9727a3dbb552b74f0d40d0ab221f.tar.gz scummvm-rg350-6e90f9e6938c9727a3dbb552b74f0d40d0ab221f.tar.bz2 scummvm-rg350-6e90f9e6938c9727a3dbb552b74f0d40d0ab221f.zip |
DREAMWEB: 'clearendpal' ported to C++
Diffstat (limited to 'engines/dreamweb')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 10 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.h | 3 | ||||
-rw-r--r-- | engines/dreamweb/stubs.h | 1 | ||||
-rw-r--r-- | engines/dreamweb/vgafades.cpp | 4 |
4 files changed, 6 insertions, 12 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 6c605e6295..4d71850cdd 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -2560,15 +2560,6 @@ void DreamGenContext::dofade() { fadecalculation(); } -void DreamGenContext::clearendpal() { - STACK_CHECK; - es = data.word(kBuffers); - di = (0+(228*13)+32+60+(32*32)+(11*10*3)+768); - cx = 768; - al = 0; - _stosb(cx, true); -} - void DreamGenContext::clearpalette() { STACK_CHECK; data.byte(kFadedirection) = 0; @@ -16137,7 +16128,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) { case addr_transfermap: transfermap(); break; case addr_fadedos: fadedos(); break; case addr_dofade: dofade(); break; - case addr_clearendpal: clearendpal(); break; case addr_clearpalette: clearpalette(); break; case addr_fadescreenup: fadescreenup(); break; case addr_fadetowhite: fadetowhite(); break; diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h index 564b52ed57..7bdb934fd1 100644 --- a/engines/dreamweb/dreamgen.h +++ b/engines/dreamweb/dreamgen.h @@ -514,7 +514,6 @@ public: static const uint16 addr_fadetowhite = 0xc25c; static const uint16 addr_fadescreenup = 0xc258; static const uint16 addr_clearpalette = 0xc254; - static const uint16 addr_clearendpal = 0xc250; static const uint16 addr_dofade = 0xc24c; static const uint16 addr_fadedos = 0xc248; static const uint16 addr_transfermap = 0xc244; @@ -1291,7 +1290,7 @@ public: void drawfloor(); void loadkeypad(); //void findsource(); - void clearendpal(); + //void clearendpal(); void findtext1(); void isryanholding(); void showslots(); diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h index 2fcb914e0f..a9c8941a97 100644 --- a/engines/dreamweb/stubs.h +++ b/engines/dreamweb/stubs.h @@ -259,6 +259,7 @@ uint8 *startPalette(); uint8 *endPalette(); void clearstartpal(); + void clearendpal(); void paltostartpal(); void endpaltostart(); void startpaltoend(); diff --git a/engines/dreamweb/vgafades.cpp b/engines/dreamweb/vgafades.cpp index abb1a9b1a6..10857d2b44 100644 --- a/engines/dreamweb/vgafades.cpp +++ b/engines/dreamweb/vgafades.cpp @@ -40,6 +40,10 @@ void DreamGenContext::clearstartpal() { memset(startPalette(), 0, 256*3); } +void DreamGenContext::clearendpal() { + memset(endPalette(), 0, 256*3); +} + void DreamGenContext::paltostartpal() { memcpy(startPalette(), mainPalette(), 256*3); } |