diff options
author | Johannes Schickel | 2009-06-22 02:37:41 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-06-22 02:37:41 +0000 |
commit | d7432e18eae9e6d632addcea1a0dd6933e5b0770 (patch) | |
tree | b628afe80fed360f46c2b8939c2bff8e07534087 /engines/kyra/script_lol.cpp | |
parent | d2e5166dae41d8972151ba3d1471ceace4323478 (diff) | |
download | scummvm-rg350-d7432e18eae9e6d632addcea1a0dd6933e5b0770.tar.gz scummvm-rg350-d7432e18eae9e6d632addcea1a0dd6933e5b0770.tar.bz2 scummvm-rg350-d7432e18eae9e6d632addcea1a0dd6933e5b0770.zip |
Changed Screen::loadPalette to take a reference to a Palette object instead of an array.
svn-id: r41745
Diffstat (limited to 'engines/kyra/script_lol.cpp')
-rw-r--r-- | engines/kyra/script_lol.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/kyra/script_lol.cpp b/engines/kyra/script_lol.cpp index 2f26c14d43..03cd7f096a 100644 --- a/engines/kyra/script_lol.cpp +++ b/engines/kyra/script_lol.cpp @@ -2148,12 +2148,12 @@ int LoLEngine::olol_restoreMagicShroud(EMCState *script) { uint8 *tpal2 = tpal1 + 768; uint8 *tpal3 = tpal2 + 768; uint8 *tpal4 = 0; - _screen->loadPalette("LITEPAL1.COL", tpal1); + _res->loadFileToBuf("LITEPAL1.COL", tpal1, 768); tpal2 = _screen->generateFadeTable(tpal3, 0, tpal1, 21); - _screen->loadPalette("LITEPAL2.COL", tpal2); + _res->loadFileToBuf("LITEPAL2.COL", tpal2, 768); tpal4 = tpal2; tpal2 += 768; - _screen->loadPalette("LITEPAL3.COL", tpal1); + _res->loadFileToBuf("LITEPAL3.COL", tpal1, 768); _screen->generateFadeTable(tpal2, tpal4, tpal1, 4); Palette pal(768); @@ -2309,7 +2309,7 @@ int LoLEngine::tlol_setupPaletteFade(const TIM *tim, const uint16 *param) { int LoLEngine::tlol_loadPalette(const TIM *tim, const uint16 *param) { debugC(3, kDebugLevelScriptFuncs, "LoLEngine::tlol_loadPalette(%p, %p) (%d)", (const void *)tim, (const void *)param, param[0]); const char *palFile = (const char *)(tim->text + READ_LE_UINT16(tim->text + (param[0]<<1))); - _screen->loadPalette(palFile, _screen->getPalette(0).getData()); + _screen->loadPalette(palFile, _screen->getPalette(0)); return 1; } |