diff options
author | Filippos Karapetis | 2009-05-14 19:33:03 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-05-14 19:33:03 +0000 |
commit | 443aacee79fad00ba17a76e48ffd86c160b9077a (patch) | |
tree | 58e26dbdbab86ae4cb9411ae1fb54a1888facb76 /engines/sci/sci.cpp | |
parent | 97bdf32a5974ba1a0504156ad2c4eb7403187a15 (diff) | |
download | scummvm-rg350-443aacee79fad00ba17a76e48ffd86c160b9077a.tar.gz scummvm-rg350-443aacee79fad00ba17a76e48ffd86c160b9077a.tar.bz2 scummvm-rg350-443aacee79fad00ba17a76e48ffd86c160b9077a.zip |
Added a parameter to the graphics resource manager to determine if the running SCI1 game is VGA or not (better than modifying the detected SCI resource version)
svn-id: r40566
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r-- | engines/sci/sci.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index 85f16f9902..f91c8d568c 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -226,8 +226,7 @@ Common::Error SciEngine::run() { // Default config ends #endif - int resVersion = !(getFlags() & GF_SCI1_EGA) ? _resmgr->_sciVersion : SCI_VERSION_01; - if (gfxop_init(resVersion, &gfx_state, &gfx_options, _resmgr)) { + if (gfxop_init(_resmgr->_sciVersion, !(getFlags() & GF_SCI1_EGA), &gfx_state, &gfx_options, _resmgr)) { fprintf(stderr, "Graphics initialization failed. Aborting...\n"); return Common::kUnknownError; } |