From bf5e4431d828f5ae6aa6273cf3049ecca7fbc122 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 14 May 2009 19:42:46 +0000 Subject: Fixed regression in EGA games svn-id: r40567 --- engines/sci/sci.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/sci') 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; } -- cgit v1.2.3