aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNicola Mettifogo2007-05-21 19:09:49 +0000
committerNicola Mettifogo2007-05-21 19:09:49 +0000
commit8bc84330596829f129e9c00ca2c1711f73685cb6 (patch)
treee91d0040ac445e79f7a94f5d151602e187bffd71 /engines
parent9a93286f4205619395d9f61c108492a8c74caaca (diff)
downloadscummvm-rg350-8bc84330596829f129e9c00ca2c1711f73685cb6.tar.gz
scummvm-rg350-8bc84330596829f129e9c00ca2c1711f73685cb6.tar.bz2
scummvm-rg350-8bc84330596829f129e9c00ca2c1711f73685cb6.zip
Fixed palette fade in intro sequence and palette effect for Dino's treatment
svn-id: r26904
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/callables.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/engines/parallaction/callables.cpp b/engines/parallaction/callables.cpp
index 4d9b1080c6..ffd7a844e4 100644
--- a/engines/parallaction/callables.cpp
+++ b/engines/parallaction/callables.cpp
@@ -65,11 +65,12 @@ void _c_score(void *parm) {
}
void _c_fade(void *parm) {
+
_vm->_gfx->setBlackPalette();
- _vm->_gfx->swapBuffers();
-
Gfx::Palette pal;
+ memset(pal, 0, sizeof(Gfx::Palette));
+
for (uint16 _di = 0; _di < 64; _di++) {
_vm->_gfx->fadePalette(pal);
_vm->_gfx->setPalette(pal);
@@ -296,21 +297,24 @@ void _c_endComment(void *param) {
}
void _c_frankenstein(void *parm) {
+
Gfx::Palette pal0;
+ Gfx::Palette pal1;
for (uint16 i = 0; i <= BASE_PALETTE_COLORS; i++) {
pal0[(i+FIRST_BASE_COLOR)] = _vm->_gfx->_palette[i];
pal0[(i+FIRST_BASE_COLOR)*3+1] = 0;
pal0[(i+FIRST_BASE_COLOR)*3+2] = 0;
- pal0[(i+FIRST_EHB_COLOR)*3+1] = 0;
- pal0[(i+FIRST_EHB_COLOR)*3+2] = 0;
+
+ pal1[(i+FIRST_BASE_COLOR)*3+1] = 0;
+ pal1[(i+FIRST_BASE_COLOR)*3+2] = 0;
}
for (uint16 _di = 0; _di < 30; _di++) {
g_system->delayMillis(20);
_vm->_gfx->setPalette(pal0, FIRST_BASE_COLOR, BASE_PALETTE_COLORS);
g_system->delayMillis(20);
- _vm->_gfx->setPalette(pal0, FIRST_EHB_COLOR, EHB_PALETTE_COLORS);
+ _vm->_gfx->setPalette(pal1, FIRST_BASE_COLOR, BASE_PALETTE_COLORS);
}
_vm->_gfx->setPalette(_vm->_gfx->_palette);