aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/agi.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-10 18:48:53 +0100
committerMartin Kiewitz2016-02-10 18:48:53 +0100
commitb443ac7b95c92e1bc5b4bb3ea201cb06a15e8b6c (patch)
tree6ff49befd921e793fe3530d9f69af3576d112562 /engines/agi/agi.cpp
parentf07bcff3cbe9c288d1ec09b7c555d33955fc04cc (diff)
downloadscummvm-rg350-b443ac7b95c92e1bc5b4bb3ea201cb06a15e8b6c.tar.gz
scummvm-rg350-b443ac7b95c92e1bc5b4bb3ea201cb06a15e8b6c.tar.bz2
scummvm-rg350-b443ac7b95c92e1bc5b4bb3ea201cb06a15e8b6c.zip
AGI: Init video before font + text init
Diffstat (limited to 'engines/agi/agi.cpp')
-rw-r--r--engines/agi/agi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp
index bcf84840d2..a4b6c40e39 100644
--- a/engines/agi/agi.cpp
+++ b/engines/agi/agi.cpp
@@ -469,6 +469,8 @@ void AgiEngine::initialize() {
_systemUI = new SystemUI(this, _gfx, _text);
_inventory = new InventoryMgr(this, _gfx, _text, _systemUI);
+ _gfx->initVideo();
+
_font->init();
_text->init(_systemUI);
@@ -478,8 +480,6 @@ void AgiEngine::initialize() {
_game.name[0] = '\0';
- _gfx->initVideo();
-
_lastSaveTime = 0;
debugC(2, kDebugLevelMain, "Detect game");