aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMatthew Hoops2010-01-31 17:30:58 +0000
committerMatthew Hoops2010-01-31 17:30:58 +0000
commit3b411f65767256f3d55fd361a253d06f6426654c (patch)
tree1f326fb8a8eccb08a77a2fa2806e57dd0e9fcfd6 /engines/sci
parent2cf1efac7827629cbbede10628a585b85dbb5cae (diff)
downloadscummvm-rg350-3b411f65767256f3d55fd361a253d06f6426654c.tar.gz
scummvm-rg350-3b411f65767256f3d55fd361a253d06f6426654c.tar.bz2
scummvm-rg350-3b411f65767256f3d55fd361a253d06f6426654c.zip
Fix compile without ENABLE_SCI32 set.
svn-id: r47761
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/sci.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index 4cf7b21ca2..2c3319745b 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -178,14 +178,14 @@ Common::Error SciEngine::run() {
_gamestate->_gui = 0;
_gamestate->_gui32 = new SciGui32(_gamestate, screen, palette, cache, cursor);
} else {
+#endif
_gamestate->_gfxPorts = new GfxPorts(segMan, screen);
_gamestate->_gui = new SciGui(_gamestate, screen, palette, cache, cursor, _gamestate->_gfxPorts, _audio);
+#ifdef ENABLE_SCI32
_gamestate->_gui32 = 0;
}
-#else
- _gamestate->_ports = new GfxPorts(_segMan, _screen);
- _gamestate->_gui = new SciGui(_gamestate, screen, palette, cursor, _audio);
#endif
+
_gamestate->_gfxPalette = palette;
_gamestate->_gfxScreen = screen;
_gamestate->_gfxCache = cache;