From 3dda1c8073cee0ee35cafa8cdd28462e4727cc34 Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Fri, 8 Jan 2010 13:45:44 +0000 Subject: [PATCH] SCI: Fix view detection in Hoyle 2 svn-id: r47154 --- engines/sci/resource.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index 27776141e8b..526a71bf623 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++) {