aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-05-12 20:09:15 +0000
committerTorbjörn Andersson2006-05-12 20:09:15 +0000
commit860073c45ac9c6d47b9a9349f0fbdb520a44fd8c (patch)
treeecfc1b2c5c8566cea032a2179ab4d17142ca5bdc
parentd00755de8e29dc5b074bd4f103f5a8b12e57a495 (diff)
downloadscummvm-rg350-860073c45ac9c6d47b9a9349f0fbdb520a44fd8c.tar.gz
scummvm-rg350-860073c45ac9c6d47b9a9349f0fbdb520a44fd8c.tar.bz2
scummvm-rg350-860073c45ac9c6d47b9a9349f0fbdb520a44fd8c.zip
Fixed two regressions in the o1_specialFade() opcode: The wrong colours were
faded, and they weren't faded enough. Don't you just love opcodes that are only ever used at the very end of the game? svn-id: r22418
-rw-r--r--engines/simon/items.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/simon/items.cpp b/engines/simon/items.cpp
index dd3004e113..dc289f9c98 100644
--- a/engines/simon/items.cpp
+++ b/engines/simon/items.cpp
@@ -1622,12 +1622,12 @@ void SimonEngine::o1_specialFade() {
// 187: fade to black
uint i;
- memcpy(_videoBuf1, _currentPalette, 1024);
+ memcpy(_videoBuf1, _currentPalette, 4 * 256);
for (i = 32; i != 0; --i) {
- paletteFadeOut(_videoBuf1, 32, 4);
- paletteFadeOut(_videoBuf1 + 64, 144, 4);
- paletteFadeOut(_videoBuf1 + 128, 48, 4);
+ paletteFadeOut(_videoBuf1, 32, 8);
+ paletteFadeOut(_videoBuf1 + 4 * 48, 144, 8);
+ paletteFadeOut(_videoBuf1 + 4 * 208, 48, 8);
_system->setPalette(_videoBuf1, 0, 256);
delay(5);
}