SCI: Fix detectHires() for Mac SCI32 games

svn-id: r55781
This commit is contained in:
Matthew Hoops 2011-02-05 08:18:03 +00:00
parent 53d862af0b
commit a08fa00d49

View File

@ -2375,10 +2375,10 @@ bool ResourceManager::detectHires() {
Resource *res = findResource(ResourceId(kResourceTypePic, i), 0);
if (res) {
if (READ_LE_UINT16(res->data) == 0x0e) {
if (READ_SCI11ENDIAN_UINT16(res->data) == 0x0e) {
// SCI32 picture
uint16 width = READ_LE_UINT16(res->data + 10);
uint16 height = READ_LE_UINT16(res->data + 12);
uint16 width = READ_SCI11ENDIAN_UINT16(res->data + 10);
uint16 height = READ_SCI11ENDIAN_UINT16(res->data + 12);
// Surely lowres (e.g. QFG4CD)
if ((width == 320) && ((height == 190) || (height == 200)))
return false;