From 860073c45ac9c6d47b9a9349f0fbdb520a44fd8c Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Fri, 12 May 2006 20:09:15 +0000 Subject: 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 --- engines/simon/items.cpp | 8 ++++---- 1 file 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); } -- cgit v1.2.3