diff options
author | Eugene Sandulenko | 2004-11-24 00:14:21 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-11-24 00:14:21 +0000 |
commit | 31e434dcf1e46510606efa3025c24c17ace379c6 (patch) | |
tree | addc1c7b6b9b2489eb9aca49e21ee0c729671adb /sword2 | |
parent | 6414ec92a2a3509946ae4ec35a3a77e76ad152df (diff) | |
download | scummvm-rg350-31e434dcf1e46510606efa3025c24c17ace379c6.tar.gz scummvm-rg350-31e434dcf1e46510606efa3025c24c17ace379c6.tar.bz2 scummvm-rg350-31e434dcf1e46510606efa3025c24c17ace379c6.zip |
Fix a`ll engines. They work, though current fix is just temporary.
There are plans to add some brains to GameDetector class, which will let us
avoid passing detector to init() method.
svn-id: r15873
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(); |