aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sci.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r--engines/sci/sci.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index 9f3a291733..1f38071a20 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -35,8 +35,10 @@
#include "sci/engine/state.h"
#include "sci/engine/kernel.h"
+#include "sci/gfx/operations.h" // fog GfxState
#include "sci/gfx/gfx_state_internal.h" // required for GfxContainer, GfxPort, GfxVisual
#include "sci/gui32/gui32.h"
+#include "sci/gui/gui.h"
#include "sci/gui/gui_palette.h"
#include "sci/gui/gui_cursor.h"
#include "sci/gui/gui_screen.h"
@@ -141,7 +143,9 @@ Common::Error SciEngine::run() {
ConfMan.registerDefault("undither", "true");
screen->unditherSetState(ConfMan.getBool("undither"));
+#ifdef INCLUDE_OLDGFX
gfxop_init(&gfx_state, _resMan, screen, palette, 1);
+#endif
if (game_init_graphics(_gamestate)) { // Init interpreter graphics
warning("Game initialization failed: Error in GFX subsystem. Aborting...");
@@ -168,7 +172,9 @@ Common::Error SciEngine::run() {
delete screen;
delete _gamestate;
+#ifdef INCLUDE_OLDGFX
gfxop_exit(&gfx_state);
+#endif
return Common::kNoError;
}