mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +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);
|
uint16 height = READ_LE_UINT16(res->data + offset);
|
||||||
offset += 6;
|
offset += 6;
|
||||||
|
|
||||||
|
// To improve the heuristic, we skip very small views
|
||||||
|
if (height < 10)
|
||||||
|
continue;
|
||||||
|
|
||||||
// Check that the RLE data stays within bounds
|
// Check that the RLE data stays within bounds
|
||||||
int y;
|
int y;
|
||||||
for (y = 0; y < height; y++) {
|
for (y = 0; y < height; y++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user