[Scummvm-cvs-logs] scummvm master -> 2a1b80fe187dd3e67fe02373aa0f1173bb45f467

zeldin marcus at mc.pp.se
Mon Feb 8 21:27:45 CET 2016


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:
2a1b80fe18 TINSEL: Fix crash on big-endian hosts


Commit: 2a1b80fe187dd3e67fe02373aa0f1173bb45f467
    https://github.com/scummvm/scummvm/commit/2a1b80fe187dd3e67fe02373aa0f1173bb45f467
Author: Marcus Comstedt (marcus at mc.pp.se)
Date: 2016-02-08T21:26:37+01:00

Commit Message:
TINSEL: Fix crash on big-endian hosts

Changed paths:
    engines/tinsel/graphics.cpp



diff --git a/engines/tinsel/graphics.cpp b/engines/tinsel/graphics.cpp
index 0282aff..2ff96a9 100644
--- a/engines/tinsel/graphics.cpp
+++ b/engines/tinsel/graphics.cpp
@@ -164,7 +164,7 @@ static void t0WrtNonZero(DRAWOBJECT *pObj, uint8 *srcP, uint8 *destP, bool apply
 
 		// Horizontal loop
 		for (int x = 0; x < pObj->width; ) {
-			uint32 numBytes = READ_UINT32(srcP);
+			uint32 numBytes = READ_LE_UINT32(srcP);
 			srcP += sizeof(uint32);
 			bool repeatFlag = (numBytes & 0x80000000L) != 0;
 			numBytes &= 0x7fffffff;






More information about the Scummvm-git-logs mailing list