diff options
| author | Filippos Karapetis | 2014-08-08 02:51:57 +0300 | 
|---|---|---|
| committer | Filippos Karapetis | 2014-08-08 02:51:57 +0300 | 
| commit | f2f8bf5685ecd67af9e2ad26b52af78ebe8c98c8 (patch) | |
| tree | b08330c5988b9336d57ed801478c71129057660d | |
| parent | e7f023883eaeed0bd1bb82a0ccb12472785d6ed5 (diff) | |
| download | scummvm-rg350-f2f8bf5685ecd67af9e2ad26b52af78ebe8c98c8.tar.gz scummvm-rg350-f2f8bf5685ecd67af9e2ad26b52af78ebe8c98c8.tar.bz2 scummvm-rg350-f2f8bf5685ecd67af9e2ad26b52af78ebe8c98c8.zip | |
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
| -rw-r--r-- | engines/sci/engine/features.cpp | 6 | 
1 files 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;  			}  		} | 
