aboutsummaryrefslogtreecommitdiff
path: root/sky
diff options
context:
space:
mode:
authorEugene Sandulenko2004-11-24 00:14:21 +0000
committerEugene Sandulenko2004-11-24 00:14:21 +0000
commit31e434dcf1e46510606efa3025c24c17ace379c6 (patch)
treeaddc1c7b6b9b2489eb9aca49e21ee0c729671adb /sky
parent6414ec92a2a3509946ae4ec35a3a77e76ad152df (diff)
downloadscummvm-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.cpp7
-rw-r--r--sky/sky.h2
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");
diff --git a/sky/sky.h b/sky/sky.h
index d4e57e9a7a..08f56002c4 100644
--- a/sky/sky.h
+++ b/sky/sky.h
@@ -100,7 +100,7 @@ protected:
uint32 _lastSaveTime;
Text *getText();
- int init();
+ int init(GameDetector &detector);
void initItemList();
void initVirgin();