mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
TONY: Fix image loading on BE systems.
Thanks to wjp and fuzzie for working out the cause.
This commit is contained in:
@@ -1951,7 +1951,7 @@ void RMGfxSourceBuffer16::prepareImage() {
|
||||
uint16 *buf = (uint16 *)_buf;
|
||||
|
||||
for (int i = 0; i < _dimx * _dimy; i++)
|
||||
WRITE_LE_UINT16(&buf[i], FROM_LE_16(buf[i]) & 0x7FFF);
|
||||
buf[i] = FROM_LE_16(buf[i]) & 0x7FFF;
|
||||
}
|
||||
|
||||
RMGfxSourceBuffer16::RMGfxSourceBuffer16(int dimx, int dimy)
|
||||
|
||||
Reference in New Issue
Block a user