mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Fix palette on big endian
svn-id: r36219
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user