aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJoost Peters2009-02-04 20:55:15 +0000
committerJoost Peters2009-02-04 20:55:15 +0000
commitfdce2ea425962e38605a2cd652f0640b89f6df91 (patch)
tree9585c896208450571e0f5d87b9bcab84c618021a /engines
parentb89031b8d2427e07e88d215233654c1fe65a1f56 (diff)
downloadscummvm-rg350-fdce2ea425962e38605a2cd652f0640b89f6df91.tar.gz
scummvm-rg350-fdce2ea425962e38605a2cd652f0640b89f6df91.tar.bz2
scummvm-rg350-fdce2ea425962e38605a2cd652f0640b89f6df91.zip
Fix palette on big endian
svn-id: r36219
Diffstat (limited to 'engines')
-rw-r--r--engines/tinsel/faders.cpp2
-rw-r--r--engines/tinsel/polygons.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/tinsel/faders.cpp b/engines/tinsel/faders.cpp
index 0233dbcf4a..3039e57bb2 100644
--- a/engines/tinsel/faders.cpp
+++ b/engines/tinsel/faders.cpp
@@ -117,7 +117,7 @@ static void FadeProcess(CORO_PARAM, const void *param) {
// fade palette using next multiplier
if (TinselV2)
FadePalette(_ctx->fadeRGB, pFade->pPalQ->palRGB,
- FROM_LE_32(pFade->pPalQ->numColours), (uint32) *_ctx->pColMult);
+ pFade->pPalQ->numColours, (uint32) *_ctx->pColMult);
else
FadePalette(_ctx->fadeRGB, _ctx->pPalette->palRGB,
FROM_LE_32(_ctx->pPalette->numColours), (uint32) *_ctx->pColMult);
diff --git a/engines/tinsel/polygons.cpp b/engines/tinsel/polygons.cpp
index 6f904e9372..69031d7a9b 100644
--- a/engines/tinsel/polygons.cpp
+++ b/engines/tinsel/polygons.cpp
@@ -1041,8 +1041,8 @@ int GetBrightness(HPOLYGON hPath, int y) {
Poly pp(LockMem(pHandle), Polys[hPath]->pIndex);
// Path is of a constant brightness?
- if (pp.bright1 == pp.bright2)
- return pp.bright1;
+ if (FROM_LE_32(pp.bright1) == FROM_LE_32(pp.bright2))
+ return FROM_LE_32(pp.bright1);
assert(FROM_LE_32(pp.bright1) >= FROM_LE_32(pp.bright2));