diff options
Diffstat (limited to 'sword2/sword2.cpp')
-rw-r--r-- | sword2/sword2.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp index 05ba3bf340..ffdb700d4a 100644 --- a/sword2/sword2.cpp +++ b/sword2/sword2.cpp @@ -223,11 +223,14 @@ void Sword2Engine::setupPersistentResources() { _resman->openResource(CUR_PLAYER_ID); } -int Sword2Engine::init() { +int Sword2Engine::init(GameDetector &detector) { // Get some falling RAM and put it in your pocket, never let it slip // away - _graphics = new Graphics(this, 640, 480); + _system->beginGFXTransaction(); + initCommonGFX(detector); + _graphics = new Graphics(this, 640, 480); + _system->endGFXTransaction(); // Create the debugger as early as possible (but not before the // graphics object!) so that errors can be displayed in it. In |