mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
SCI: Fix view detection in Hoyle 2
svn-id: r47154
This commit is contained in:
parent
cac3510b67
commit
3dda1c8073
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user