Enabled RGB color support in SCI engine, corrected SCI engine's initGraphics call for modified API

svn-id: r41911
This commit is contained in:
Jody Northup 2009-06-27 08:16:21 +00:00
parent 853aec05ba
commit 39e957d313
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8,00"
Version="8.00"
Name="sci"
ProjectGUID="{53F17B2B-0412-4EC3-A999-ED0537BB5223}"
RootNamespace="sci"
@ -43,7 +43,7 @@
Optimization="0"
InlineFunctionExpansion="0"
AdditionalIncludeDirectories="../../;../../engines"
PreprocessorDefinitions="WIN32;_DEBUG;USE_ZLIB;USE_MAD;USE_VORBIS"
PreprocessorDefinitions="WIN32;_DEBUG;USE_ZLIB;USE_MAD;USE_VORBIS;ENABLE_RGB_COLOR"
MinimalRebuild="true"
ExceptionHandling="1"
BasicRuntimeChecks="3"

View File

@ -105,7 +105,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, &gfxmode);
// TODO: check if this succeeded? (How?)
#else
gfxmode = Graphics::PixelFormat::createFormatCLUT8();