TONY: Fix image loading on BE systems.

Thanks to wjp and fuzzie for working out the cause.
This commit is contained in:
D G Turner 2012-11-13 09:18:28 +00:00
parent 8df3c1458d
commit 43520ce4f3

View file

@ -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)