diff options
Diffstat (limited to 'sword2')
-rw-r--r-- | sword2/sword2.cpp | 7 | ||||
-rw-r--r-- | sword2/sword2.h | 2 |
2 files changed, 6 insertions, 3 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 diff --git a/sword2/sword2.h b/sword2/sword2.h index e775195dd4..84a3084c73 100644 --- a/sword2/sword2.h +++ b/sword2/sword2.h @@ -171,7 +171,7 @@ public: Sword2Engine(GameDetector *detector, OSystem *syst); ~Sword2Engine(); int go(); - int init(); + int init(GameDetector &detector); void setupPersistentResources(); |