diff options
author | Filippos Karapetis | 2012-12-10 17:17:16 +0200 |
---|---|---|
committer | Filippos Karapetis | 2012-12-10 17:38:22 +0200 |
commit | c6cf4827d719c1833ce4d7e108410db81f00c358 (patch) | |
tree | ad187c2321e12082d649fc9033cb6ee604a8f23a /engines/tinsel/bg.cpp | |
parent | 00e51699917bcfe38689cd0269bd899624083bf9 (diff) | |
download | scummvm-rg350-c6cf4827d719c1833ce4d7e108410db81f00c358.tar.gz scummvm-rg350-c6cf4827d719c1833ce4d7e108410db81f00c358.tar.bz2 scummvm-rg350-c6cf4827d719c1833ce4d7e108410db81f00c358.zip |
TINSEL: Revert most of the engine BE resource handling code
This was added in commit 3fdddd53b2b970aae3e967bebc0bff6e642a5111.
However, having handling for both BE and LE resource complicates
the engine code unnecessarily. Thus, a different approach will be
done.
Diffstat (limited to 'engines/tinsel/bg.cpp')
-rw-r--r-- | engines/tinsel/bg.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/tinsel/bg.cpp b/engines/tinsel/bg.cpp index 0c0db12c32..a3e21a8227 100644 --- a/engines/tinsel/bg.cpp +++ b/engines/tinsel/bg.cpp @@ -124,7 +124,7 @@ static void BGmainProcess(CORO_PARAM, const void *param) { pReel = (const FREEL *)param; // Get the MULTI_INIT structure - pmi = (const MULTI_INIT *)LockMem(FROM_32(pReel->mobj)); + pmi = (const MULTI_INIT *)LockMem(FROM_LE_32(pReel->mobj)); // Initialize and insert the object, and initialize its script. g_pBG[0] = MultiInitObject(pmi); @@ -249,10 +249,10 @@ void StartupBackground(CORO_PARAM, SCNHANDLE hFilm) { pim = GetImageFromFilm(hFilm, 0, NULL, NULL, &pfilm); - SetBackPal(FROM_32(pim->hImgPal)); + SetBackPal(FROM_LE_32(pim->hImgPal)); // Extract the film speed - g_BGspeed = ONE_SECOND / FROM_32(pfilm->frate); + g_BGspeed = ONE_SECOND / FROM_LE_32(pfilm->frate); // Start display process for each reel in the film CoroScheduler.createProcess(PID_REEL, BGmainProcess, &pfilm->reels[0], sizeof(FREEL)); |