diff options
| author | Jody Northup | 2009-07-10 10:45:15 +0000 | 
|---|---|---|
| committer | Jody Northup | 2009-07-10 10:45:15 +0000 | 
| commit | bb1da36710b8ddc5dd3d4bbf7414dd20b7a646b3 (patch) | |
| tree | 7575a15bfbdc60549c6d4804720ba001c54e7deb | |
| parent | 2f370ef8ab65db8443c496c47de98740b31c4220 (diff) | |
| download | scummvm-rg350-bb1da36710b8ddc5dd3d4bbf7414dd20b7a646b3.tar.gz scummvm-rg350-bb1da36710b8ddc5dd3d4bbf7414dd20b7a646b3.tar.bz2 scummvm-rg350-bb1da36710b8ddc5dd3d4bbf7414dd20b7a646b3.zip | |
Simplified SCI and groovie's initial graphics setup making use of the overloaded functions.
svn-id: r42331
| -rw-r--r-- | engines/groovie/groovie.cpp | 3 | ||||
| -rw-r--r-- | engines/sci/sci.cpp | 3 | 
2 files changed, 2 insertions, 4 deletions
| diff --git a/engines/groovie/groovie.cpp b/engines/groovie/groovie.cpp index 6f985ddad5..bb4e142196 100644 --- a/engines/groovie/groovie.cpp +++ b/engines/groovie/groovie.cpp @@ -73,8 +73,7 @@ Common::Error GroovieEngine::run() {  	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(); diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index dbb8d4784a..cf08c69738 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -106,8 +106,7 @@ SciEngine::~SciEngine() {  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 | 
