Enclose all of the old graphics code within the INCLUDE_OLDGFX safeguard (defined in sci.h)

svn-id: r45459
This commit is contained in:
Filippos Karapetis 2009-10-28 13:20:30 +00:00
parent f28fe1b074
commit 04ab6bc9fc
43 changed files with 770 additions and 513 deletions

View file

@ -748,9 +748,10 @@ EngineState *gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) {
retval->execution_stack_base = 0;
// Now copy all current state information
#ifdef INCLUDE_OLDGFX
// Graphics and input state:
retval->gfx_state = s->gfx_state;
retval->old_screen = 0;
#endif
temp = retval->_sound._songlib;
retval->_sound.sfx_init(retval->resMan, s->sfx_init_flags);
@ -781,7 +782,9 @@ EngineState *gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) {
retval->bp_list = s->bp_list;
retval->successor = NULL;
#ifdef INCLUDE_OLDGFX
retval->pic_priority_table = (int *)(retval->gfx_state->pic) ? retval->gfx_state->pic->priorityTable : NULL;
#endif
retval->_gameName = s->_gameName;
retval->_sound._it = NULL;