aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2016-12-21 22:49:28 -0800
committerEugene Sandulenko2017-01-25 22:42:15 +0100
commitf08b9f5f5b10491e0aeb14adc76716246ad1da5d (patch)
tree5b954e01b9d496036dcff7d5d56d7ec6a0cceb76
parent1ae917bda90accd98fa40003eb6d0663207ad97b (diff)
downloadscummvm-rg350-f08b9f5f5b10491e0aeb14adc76716246ad1da5d.tar.gz
scummvm-rg350-f08b9f5f5b10491e0aeb14adc76716246ad1da5d.tar.bz2
scummvm-rg350-f08b9f5f5b10491e0aeb14adc76716246ad1da5d.zip
CRYO: Fix the loading of icons for the Mac version
-rw-r--r--engines/cryo/eden.cpp24
1 files changed, 17 insertions, 7 deletions
diff --git a/engines/cryo/eden.cpp b/engines/cryo/eden.cpp
index 4889721122..afd54b95e3 100644
--- a/engines/cryo/eden.cpp
+++ b/engines/cryo/eden.cpp
@@ -4735,13 +4735,23 @@ void EdenGame::loadIconFile(uint16 num, Icon *buffer) {
int count = size / sizeof(Icon);
for (int i = 0; i < count; i++) {
- buffer[i].sx = h_bigfile.readSint16LE();
- buffer[i].sy = h_bigfile.readSint16LE();
- buffer[i].ex = h_bigfile.readSint16LE();
- buffer[i].ey = h_bigfile.readSint16LE();
- buffer[i]._cursorId = h_bigfile.readUint16LE();;
- buffer[i]._actionId= h_bigfile.readUint32LE();;
- buffer[i]._objectId= h_bigfile.readUint32LE();;
+ if (_vm->getPlatform() == Common::kPlatformMacintosh) {
+ buffer[i].sx = h_bigfile.readSint16BE();
+ buffer[i].sy = h_bigfile.readSint16BE();
+ buffer[i].ex = h_bigfile.readSint16BE();
+ buffer[i].ey = h_bigfile.readSint16BE();
+ buffer[i]._cursorId = h_bigfile.readUint16BE();;
+ buffer[i]._actionId= h_bigfile.readUint32BE();;
+ buffer[i]._objectId= h_bigfile.readUint32BE();;
+ } else {
+ buffer[i].sx = h_bigfile.readSint16LE();
+ buffer[i].sy = h_bigfile.readSint16LE();
+ buffer[i].ex = h_bigfile.readSint16LE();
+ buffer[i].ey = h_bigfile.readSint16LE();
+ buffer[i]._cursorId = h_bigfile.readUint16LE();;
+ buffer[i]._actionId= h_bigfile.readUint32LE();;
+ buffer[i]._objectId= h_bigfile.readUint32LE();;
+ }
}
}