diff options
author | Matthew Hoops | 2007-09-22 23:39:47 +0000 |
---|---|---|
committer | Matthew Hoops | 2007-09-22 23:39:47 +0000 |
commit | 62f69cff8a86598242ec08bf150633b920ff105a (patch) | |
tree | 8272ced6f9f2df5d20cd8f5f2f7cda7bd4441727 /engines/agi | |
parent | 998d43df30683ae40f7fde92e453e36a67682176 (diff) | |
download | scummvm-rg350-62f69cff8a86598242ec08bf150633b920ff105a.tar.gz scummvm-rg350-62f69cff8a86598242ec08bf150633b920ff105a.tar.bz2 scummvm-rg350-62f69cff8a86598242ec08bf150633b920ff105a.zip |
fix possible Endian issue
svn-id: r29033
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/preagi_winnie.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/preagi_winnie.cpp b/engines/agi/preagi_winnie.cpp index 3570a4498e..7b4ded93c3 100644 --- a/engines/agi/preagi_winnie.cpp +++ b/engines/agi/preagi_winnie.cpp @@ -1025,11 +1025,11 @@ void Winnie::drawRoomPic() { _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; |