[Scummvm-cvs-logs] SF.net SVN: scummvm:[40567] scummvm/trunk/engines/sci/sci.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Thu May 14 21:42:46 CEST 2009


Revision: 40567
          http://scummvm.svn.sourceforge.net/scummvm/?rev=40567&view=rev
Author:   thebluegr
Date:     2009-05-14 19:42:46 +0000 (Thu, 14 May 2009)

Log Message:
-----------
Fixed regression in EGA games

Modified Paths:
--------------
    scummvm/trunk/engines/sci/sci.cpp

Modified: scummvm/trunk/engines/sci/sci.cpp
===================================================================
--- scummvm/trunk/engines/sci/sci.cpp	2009-05-14 19:33:03 UTC (rev 40566)
+++ scummvm/trunk/engines/sci/sci.cpp	2009-05-14 19:42:46 UTC (rev 40567)
@@ -226,7 +226,8 @@
 	// 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;
 	}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list