aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2009-05-14 19:42:46 +0000
committerFilippos Karapetis2009-05-14 19:42:46 +0000
commitbf5e4431d828f5ae6aa6273cf3049ecca7fbc122 (patch)
treef8aab13dc50d6cf5c71901ca2e98333bc99666e4 /engines/sci
parent443aacee79fad00ba17a76e48ffd86c160b9077a (diff)
downloadscummvm-rg350-bf5e4431d828f5ae6aa6273cf3049ecca7fbc122.tar.gz
scummvm-rg350-bf5e4431d828f5ae6aa6273cf3049ecca7fbc122.tar.bz2
scummvm-rg350-bf5e4431d828f5ae6aa6273cf3049ecca7fbc122.zip
Fixed regression in EGA games
svn-id: r40567
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/sci.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index f91c8d568c..1cbe44cb2e 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -226,7 +226,8 @@ Common::Error SciEngine::run() {
// Default config ends
#endif
- if (gfxop_init(_resmgr->_sciVersion, !(getFlags() & GF_SCI1_EGA), &gfx_state, &gfx_options, _resmgr)) {
+ bool isVGA = _resmgr->_sciVersion >= SCI_VERSION_01_VGA && !(getFlags() & GF_SCI1_EGA);
+ if (gfxop_init(_resmgr->_sciVersion, isVGA, &gfx_state, &gfx_options, _resmgr)) {
fprintf(stderr, "Graphics initialization failed. Aborting...\n");
return Common::kUnknownError;
}