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 /sky | |
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 'sky')
-rw-r--r-- | sky/sky.cpp | 7 | ||||
-rw-r--r-- | sky/sky.h | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/sky/sky.cpp b/sky/sky.cpp index 17a2747191..bde61fcd0d 100644 --- a/sky/sky.cpp +++ b/sky/sky.cpp @@ -245,8 +245,11 @@ int SkyEngine::go() { return 0; } -int SkyEngine::init() { - _system->initSize(320, 200); +int SkyEngine::init(GameDetector &detector) { + _system->beginGFXTransaction(); + initCommonGFX(detector); + _system->initSize(320, 200); + _system->endGFXTransaction(); if (!_mixer->isReady()) warning("Sound initialisation failed"); @@ -100,7 +100,7 @@ protected: uint32 _lastSaveTime; Text *getText(); - int init(); + int init(GameDetector &detector); void initItemList(); void initVirgin(); |