aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2010-06-18 05:40:12 +0000
committerMartin Kiewitz2010-06-18 05:40:12 +0000
commit8f655615d774d7172e606ad2b99e02afe3ad5010 (patch)
treee7d1feb8c2bd1539701c86a906ee245e8f6e5146
parentcccfed3ba352edc81ccc06f51bbd2f8f18b892ea (diff)
downloadscummvm-rg350-8f655615d774d7172e606ad2b99e02afe3ad5010.tar.gz
scummvm-rg350-8f655615d774d7172e606ad2b99e02afe3ad5010.tar.bz2
scummvm-rg350-8f655615d774d7172e606ad2b99e02afe3ad5010.zip
SCI: reverting #49978, it worked correctly. the new values contain the full height/width of the picture (may be much larger cause of scrollable areas) and we actually don't want that. the values before and now contain the height/width of the on-screen picture size - although this may contain 0, 0 for low-res games, but that's fine then
svn-id: r50006
-rw-r--r--engines/sci/resource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp
index b71c6b9317..e59f69513c 100644
--- a/engines/sci/resource.cpp
+++ b/engines/sci/resource.cpp
@@ -1909,8 +1909,8 @@ bool ResourceManager::detectHires() {
if (res) {
if (READ_LE_UINT16(res->data) == 0x0e) {
// SCI32 picture
- uint16 width = READ_LE_UINT16(res->data + 14);
- uint16 height = READ_LE_UINT16(res->data + 16);
+ uint16 width = READ_LE_UINT16(res->data + 10);
+ uint16 height = READ_LE_UINT16(res->data + 12);
if ((width == 320) && ((height == 190) || (height == 200)))
return false;
if ((width >= 600) || (height >= 400))