diff options
author | Strangerke | 2012-04-22 23:07:09 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-03-28 17:36:57 +0200 |
commit | c304967abc2a0a79f7c35f6003b4ecec72c4bf6c (patch) | |
tree | c417e9e646a46c54c5672ec8c4665d9a93bd5f7e | |
parent | c4dc1e37611a0e6a00dbeb67696bba47be45f006 (diff) | |
download | scummvm-rg350-c304967abc2a0a79f7c35f6003b4ecec72c4bf6c.tar.gz scummvm-rg350-c304967abc2a0a79f7c35f6003b4ecec72c4bf6c.tar.bz2 scummvm-rg350-c304967abc2a0a79f7c35f6003b4ecec72c4bf6c.zip |
LILLIPUT: Rename fading functions
-rw-r--r-- | engines/lilliput/script.cpp | 18 | ||||
-rw-r--r-- | engines/lilliput/script.h | 4 |
2 files changed, 12 insertions, 10 deletions
diff --git a/engines/lilliput/script.cpp b/engines/lilliput/script.cpp index cc143f1fdd..848c7e9309 100644 --- a/engines/lilliput/script.cpp +++ b/engines/lilliput/script.cpp @@ -437,10 +437,10 @@ void LilliputScript::handleOpcodeType2(int curWord) { OC_sub182EC(); break; case 0x43: - OC_unkPaletteFunction_1(); + OC_PaletteFadeOut(); break; case 0x44: - OC_unkPaletteFunction_2(); + OC_PaletteFadeIn(); break; case 0x45: OC_loadAndDisplayCUBESx_GFX(); @@ -1664,7 +1664,8 @@ void LilliputScript::OC_sub18260() { void LilliputScript::OC_sub182EC() { warning("OC_sub182EC"); } -void LilliputScript::OC_unkPaletteFunction_1() { + +void LilliputScript::OC_PaletteFadeOut() { sub1863B(); byte palette[768]; for (int fade = 256; fade >= 0; fade -= 8) { @@ -1676,7 +1677,8 @@ void LilliputScript::OC_unkPaletteFunction_1() { _vm->_system->delayMillis(20); } } -void LilliputScript::OC_unkPaletteFunction_2() { + +void LilliputScript::OC_PaletteFadeIn() { byte palette[768]; for (int fade = 8; fade <= 256; fade += 8) { @@ -1788,13 +1790,13 @@ void LilliputScript::OC_displayVGAFile() { debugC(1, kDebugScript, "OC_displayVGAFile()"); _byte12A09 = 1; - OC_unkPaletteFunction_1(); + OC_PaletteFadeOut(); int curWord = _currScript->readUint16LE(); int index = _vm->_rulesChunk3[curWord]; Common::String fileName = Common::String((const char *)&_vm->_rulesChunk4[index]); _word1881B = -1; _vm->displayVGAFile(fileName); - OC_unkPaletteFunction_2(); + OC_PaletteFadeOut(); } void LilliputScript::OC_sub184D7() { @@ -1836,14 +1838,14 @@ void LilliputScript::OC_displayTitleScreen() { void LilliputScript::OC_sub1853B() { debugC(1, kDebugScript, "OC_sub1853B()"); - OC_unkPaletteFunction_1(); + OC_PaletteFadeOut(); _byte16F08 = 0; _byte15FFA = 0; sub130B6(); _vm->displayFunction12(); - OC_unkPaletteFunction_2(); + OC_PaletteFadeIn(); _byte12A09 = 0; _vm->_soundHandler->contentFct5(); diff --git a/engines/lilliput/script.h b/engines/lilliput/script.h index 3521ad1e4b..9c8381e721 100644 --- a/engines/lilliput/script.h +++ b/engines/lilliput/script.h @@ -228,8 +228,8 @@ private: void OC_sub18252(); void OC_sub18260(); void OC_sub182EC(); - void OC_unkPaletteFunction_1(); - void OC_unkPaletteFunction_2(); + void OC_PaletteFadeOut(); + void OC_PaletteFadeIn(); void OC_loadAndDisplayCUBESx_GFX(); void OC_sub1834C(); void OC_sub18359(); |