aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorWalter van Niftrik2010-01-08 13:45:44 +0000
committerWalter van Niftrik2010-01-08 13:45:44 +0000
commit3dda1c8073cee0ee35cafa8cdd28462e4727cc34 (patch)
treefdcea9c81314c8e0df93f19919d79acbd78bff9f /engines
parentcac3510b670a74f1b5804f3c58cee5b939dc5e57 (diff)
downloadscummvm-rg350-3dda1c8073cee0ee35cafa8cdd28462e4727cc34.tar.gz
scummvm-rg350-3dda1c8073cee0ee35cafa8cdd28462e4727cc34.tar.bz2
scummvm-rg350-3dda1c8073cee0ee35cafa8cdd28462e4727cc34.zip
SCI: Fix view detection in Hoyle 2
svn-id: r47154
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/resource.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp
index 27776141e8..526a71bf62 100644
--- a/engines/sci/resource.cpp
+++ b/engines/sci/resource.cpp
@@ -1628,6 +1628,10 @@ ViewType ResourceManager::detectViewType() {
uint16 height = READ_LE_UINT16(res->data + offset);
offset += 6;
+ // To improve the heuristic, we skip very small views
+ if (height < 10)
+ continue;
+
// Check that the RLE data stays within bounds
int y;
for (y = 0; y < height; y++) {