From 43520ce4f38c632eb438c6cada9224dad90e8621 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Tue, 13 Nov 2012 09:18:28 +0000 Subject: TONY: Fix image loading on BE systems. Thanks to wjp and fuzzie for working out the cause. --- engines/tony/gfxcore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/tony/gfxcore.cpp b/engines/tony/gfxcore.cpp index ae2019fb3c..85e5c7057f 100644 --- a/engines/tony/gfxcore.cpp +++ b/engines/tony/gfxcore.cpp @@ -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) -- cgit v1.2.3