diff options
author | Travis Howell | 2009-06-05 00:33:25 +0000 |
---|---|---|
committer | Travis Howell | 2009-06-05 00:33:25 +0000 |
commit | 9911c1bf59048d9661b720f3de6f33176b5ef1e2 (patch) | |
tree | 6ce83b0c4f2fb9349f020f0f98fff466ccd0ae8c /engines/scumm | |
parent | fa2b1add9d2febe7dd2e5691eaa85f8e7725163c (diff) | |
download | scummvm-rg350-9911c1bf59048d9661b720f3de6f33176b5ef1e2.tar.gz scummvm-rg350-9911c1bf59048d9661b720f3de6f33176b5ef1e2.tar.bz2 scummvm-rg350-9911c1bf59048d9661b720f3de6f33176b5ef1e2.zip |
Fix endian issue, the palette must be in little endian.
svn-id: r41184
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/akos.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/akos.cpp b/engines/scumm/akos.cpp index b7e36b7cea..f4bb8a2c8b 100644 --- a/engines/scumm/akos.cpp +++ b/engines/scumm/akos.cpp @@ -1357,7 +1357,7 @@ byte AkosRenderer::codec32(int xmoveCur, int ymoveCur) { palPtr = _vm->_hePalettes + _paletteNum * _vm->_hePaletteSlot + 768; } else if (rgbs) { for (uint i = 0; i < 256; i++) - _palette[i] = _vm->get16BitColor(rgbs[i * 3 + 0], rgbs[i * 3 + 1], rgbs[i * 3 + 2]); + WRITE_LE_UINT16(_palette + i, _vm->get16BitColor(rgbs[i * 3 + 0], rgbs[i * 3 + 1], rgbs[i * 3 + 2])); palPtr = (uint8 *)_palette; } } else if (_vm->_game.heversion >= 99) { |