SCI: renamed SciGuiAnimate to GfxAnimate, moved code from SciGui into this class, now getting called directly

svn-id: r47751
This commit is contained in:
Martin Kiewitz 2010-01-31 15:07:36 +00:00
parent 6248362c38
commit c991a5bceb
8 changed files with 134 additions and 120 deletions

View file

@ -172,6 +172,7 @@ Common::Error SciEngine::run() {
#ifdef ENABLE_SCI32
if (getSciVersion() >= SCI_VERSION_2) {
_gamestate->_gfxPorts = 0;
_gamestate->_gfxAnimate = 0;
_gamestate->_gui = 0;
_gamestate->_gui32 = new SciGui32(_gamestate, screen, palette, cursor);
} else {
@ -183,6 +184,7 @@ Common::Error SciEngine::run() {
_gamestate->_ports = new GfxPorts(_segMan, _screen);
_gamestate->_gui = new SciGui(_gamestate, screen, palette, cursor, _audio);
#endif
_gamestate->_screen = screen;
if (game_init(_gamestate)) { /* Initialize */
warning("Game initialization failed: Aborting...");