[Scummvm-cvs-logs] SF.net SVN: scummvm:[42331] scummvm/branches/gsoc2009-16bit/engines
upthorn at users.sourceforge.net
upthorn at users.sourceforge.net
Fri Jul 10 12:45:16 CEST 2009
Revision: 42331
http://scummvm.svn.sourceforge.net/scummvm/?rev=42331&view=rev
Author: upthorn
Date: 2009-07-10 10:45:15 +0000 (Fri, 10 Jul 2009)
Log Message:
-----------
Simplified SCI and groovie's initial graphics setup making use of the overloaded functions.
Modified Paths:
--------------
scummvm/branches/gsoc2009-16bit/engines/groovie/groovie.cpp
scummvm/branches/gsoc2009-16bit/engines/sci/sci.cpp
Modified: scummvm/branches/gsoc2009-16bit/engines/groovie/groovie.cpp
===================================================================
--- scummvm/branches/gsoc2009-16bit/engines/groovie/groovie.cpp 2009-07-10 10:43:48 UTC (rev 42330)
+++ scummvm/branches/gsoc2009-16bit/engines/groovie/groovie.cpp 2009-07-10 10:45:15 UTC (rev 42331)
@@ -73,8 +73,7 @@
switch (_gameDescription->version) {
case kGroovieV2:
// Request the mode with the highest precision available
- _pixelFormat = _system->getSupportedFormats().front();
- initGraphics(640, 480, true, &_pixelFormat);
+ initGraphics(640, 480, true, NULL);
// Save the enabled mode as it can be both an RGB mode or CLUT8
_pixelFormat = _system->getScreenFormat();
Modified: scummvm/branches/gsoc2009-16bit/engines/sci/sci.cpp
===================================================================
--- scummvm/branches/gsoc2009-16bit/engines/sci/sci.cpp 2009-07-10 10:43:48 UTC (rev 42330)
+++ scummvm/branches/gsoc2009-16bit/engines/sci/sci.cpp 2009-07-10 10:45:15 UTC (rev 42331)
@@ -106,8 +106,7 @@
Common::Error SciEngine::run() {
Graphics::PixelFormat gfxmode;
#ifdef ENABLE_RGB_COLOR
- gfxmode = _system->getSupportedFormats().front();
- initGraphics(320, 200, false, &gfxmode);
+ initGraphics(320, 200, false, NULL);
#else
initGraphics(320, 200, false);
#endif
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