[Scummvm-cvs-logs] SF.net SVN: scummvm: [29033] scummvm/trunk/engines/agi/preagi_winnie.cpp

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Sun Sep 23 01:39:47 CEST 2007


Revision: 29033
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29033&view=rev
Author:   mthreepwood
Date:     2007-09-22 16:39:47 -0700 (Sat, 22 Sep 2007)

Log Message:
-----------
fix possible Endian issue

Modified Paths:
--------------
    scummvm/trunk/engines/agi/preagi_winnie.cpp

Modified: scummvm/trunk/engines/agi/preagi_winnie.cpp
===================================================================
--- scummvm/trunk/engines/agi/preagi_winnie.cpp	2007-09-22 23:36:00 UTC (rev 29032)
+++ scummvm/trunk/engines/agi/preagi_winnie.cpp	2007-09-22 23:39:47 UTC (rev 29033)
@@ -1025,11 +1025,11 @@
 	_vm->_gfx->clearScreen(0);
 
 	// read room picture
-	uint32 size = readRoom(room, buffer);
+	readRoom(room, buffer);
 	memcpy(&roomhdr, buffer, sizeof(WTP_ROOM_HDR));
 
 	if (_vm->getPlatform() == Common::kPlatformAmiga)
-		roomhdr.ofsPic = SWAP_BYTES_16(roomhdr.ofsPic);
+		roomhdr.ofsPic = TO_BE_16(roomhdr.ofsPic);
 	else if (_vm->getPlatform() == Common::kPlatformPC)
 		roomhdr.ofsPic = roomhdr.ofsPic - IDI_WTP_OFS_ROOM;
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list