[Scummvm-cvs-logs] scummvm master -> 43520ce4f38c632eb438c6cada9224dad90e8621

digitall dgturner at iee.org
Tue Nov 13 10:22:12 CET 2012


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
43520ce4f3 TONY: Fix image loading on BE systems.


Commit: 43520ce4f38c632eb438c6cada9224dad90e8621
    https://github.com/scummvm/scummvm/commit/43520ce4f38c632eb438c6cada9224dad90e8621
Author: D G Turner (digitall at scummvm.org)
Date: 2012-11-13T01:18:28-08:00

Commit Message:
TONY: Fix image loading on BE systems.

Thanks to wjp and fuzzie for working out the cause.

Changed paths:
    engines/tony/gfxcore.cpp



diff --git a/engines/tony/gfxcore.cpp b/engines/tony/gfxcore.cpp
index ae2019f..85e5c70 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)






More information about the Scummvm-git-logs mailing list