From f2f8bf5685ecd67af9e2ad26b52af78ebe8c98c8 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 8 Aug 2014 02:51:57 +0300 Subject: SCI: Fix wrong game features heuristic for Hoyle 1/2 - bug #6606 Games with newer graphics functions can call kDrawPic with 4 or 8 parameters. Older games call it with 6 parameters. Fixes the about dialog in Hoyle 1 --- engines/sci/engine/features.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/sci/engine/features.cpp b/engines/sci/engine/features.cpp index 31e7ca4931..be062dba64 100644 --- a/engines/sci/engine/features.cpp +++ b/engines/sci/engine/features.cpp @@ -344,9 +344,9 @@ bool GameFeatures::autoDetectGfxFunctionsType(int methodNum) { if (kFuncNum == 8) { // kDrawPic (SCI0 - SCI11) // If kDrawPic is called with 6 parameters from the overlay // selector, the game is using old graphics functions. - // Otherwise, if it's called with 8 parameters, it's using new - // graphics functions. - _gfxFunctionsType = (argc == 8) ? SCI_VERSION_0_LATE : SCI_VERSION_0_EARLY; + // Otherwise, if it's called with 8 parameters (e.g. SQ3) or 4 parameters + // (e.g. Hoyle 1/2), it's using new graphics functions. + _gfxFunctionsType = (argc == 6) ? SCI_VERSION_0_EARLY : SCI_VERSION_0_LATE; return true; } } -- cgit v1.2.3