TONY: Fix image loading on BE systems.
Thanks to wjp and fuzzie for working out the cause.
This commit is contained in:
parent
8df3c1458d
commit
43520ce4f3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue