aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2012-12-11 03:04:59 +0200
committerFilippos Karapetis2012-12-11 03:04:59 +0200
commite21a547667b6b84d353fc5d3d446826b169f72b1 (patch)
tree89827312b02d088381f7df0a8c0c72bb069d954f /engines
parent394ff222329922575bd936bf5d4be2e6daf7f001 (diff)
downloadscummvm-rg350-e21a547667b6b84d353fc5d3d446826b169f72b1.tar.gz
scummvm-rg350-e21a547667b6b84d353fc5d3d446826b169f72b1.tar.bz2
scummvm-rg350-e21a547667b6b84d353fc5d3d446826b169f72b1.zip
TINSEL: Fix what seems to be two bugs in the endianess handling code
This will need to be tested in a BE system for correctness. Fixes the Mac version of DW1
Diffstat (limited to 'engines')
-rw-r--r--engines/tinsel/faders.cpp2
-rw-r--r--engines/tinsel/palette.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/tinsel/faders.cpp b/engines/tinsel/faders.cpp
index a03dc4f369..e9517103a9 100644
--- a/engines/tinsel/faders.cpp
+++ b/engines/tinsel/faders.cpp
@@ -106,7 +106,7 @@ static void FadeProcess(CORO_PARAM, const void *param) {
FadingPalette(pFade->pPalQ, true);
// get pointer to palette - reduce pointer indirection a bit
- _ctx->pPalette = (PALETTE *)LockMem(pFade->pPalQ->hPal);
+ _ctx->pPalette = (PALETTE *)LockMem(FROM_32(pFade->pPalQ->hPal));
for (_ctx->pColMult = pFade->pColorMultTable; *_ctx->pColMult >= 0; _ctx->pColMult++) {
// go through all multipliers in table - until a negative entry
diff --git a/engines/tinsel/palette.cpp b/engines/tinsel/palette.cpp
index 9155386bbc..c7c8cd0b63 100644
--- a/engines/tinsel/palette.cpp
+++ b/engines/tinsel/palette.cpp
@@ -298,7 +298,7 @@ PALQ *AllocPalette(SCNHANDLE hNewPal) {
PALETTE *pNewPal;
// get pointer to new palette
- pNewPal = (PALETTE *)LockMem(hNewPal);
+ pNewPal = (PALETTE *)LockMem(FROM_32(hNewPal));
// search all structs in palette allocator - see if palette already allocated
for (p = g_palAllocData; p < g_palAllocData + NUM_PALETTES; p++) {