diff options
Diffstat (limited to 'engines/kyra/script_v1.cpp')
-rw-r--r-- | engines/kyra/script_v1.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/kyra/script_v1.cpp b/engines/kyra/script_v1.cpp index e08eb5b439..246119f539 100644 --- a/engines/kyra/script_v1.cpp +++ b/engines/kyra/script_v1.cpp @@ -1547,10 +1547,9 @@ int KyraEngine::o1_fadeEntirePalette(ScriptState *script) { warning("unimplemented o1_fadeEntirePalette function"); return 0; } else if (cmd == 2) { - // HACK - uint8 *clearPal = _screen->getPalette(0); - fadePal = _screen->getPalette(1); - memset(clearPal, 0, sizeof(uint8)*768); + memset(_screen->getPalette(2), 0, 768); + memcpy(_screen->getPalette(0), _screen->getPalette(1), 768); + fadePal = _screen->getPalette(0); } _screen->fadePalette(fadePal, stackPos(1)); |