diff options
author | Eugene Sandulenko | 2004-11-14 14:46:56 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-11-14 14:46:56 +0000 |
commit | 71cac5a32e1fb23dbc9a082e4cf0955ba1c95da2 (patch) | |
tree | ea9804264a4f06b8baf393501d5a25f6138412c4 | |
parent | 8f1307ff6ca772b43b10ba77e9d32ddcc1c67f62 (diff) | |
download | scummvm-rg350-71cac5a32e1fb23dbc9a082e4cf0955ba1c95da2.tar.gz scummvm-rg350-71cac5a32e1fb23dbc9a082e4cf0955ba1c95da2.tar.bz2 scummvm-rg350-71cac5a32e1fb23dbc9a082e4cf0955ba1c95da2.zip |
For MT-32 emu graphics should be initialized before Midi, as it prints
ScummVM version on OSD. Now it works with the emu.
svn-id: r15808
-rw-r--r-- | kyra/kyra.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kyra/kyra.cpp b/kyra/kyra.cpp index 3dc230e45a..94831b98d3 100644 --- a/kyra/kyra.cpp +++ b/kyra/kyra.cpp @@ -122,6 +122,11 @@ KyraEngine::KyraEngine(GameDetector *detector, OSystem *syst) error("unknown game"); } + // Initialize backen + syst->initSize(320, 200); + _screen = new uint8[320*200]; + memset(_screen, 0, sizeof(uint8) * 320 * 200); + int midiDrv = GameDetector::detectMusicDriver(MDT_NATIVE | MDT_ADLIB | MDT_PREFER_NATIVE); bool native_mt32 = (ConfMan.getBool("native_mt32") || (midiDrv == MD_MT32)); @@ -140,11 +145,6 @@ KyraEngine::KyraEngine(GameDetector *detector, OSystem *syst) if (midiDrv == MD_MT32) _midiDriver->setPassThrough(true); - - // Initialize backen - syst->initSize(320, 200); - _screen = new uint8[320*200]; - memset(_screen, 0, sizeof(uint8) * 320 * 200); _resMgr = new Resourcemanager(this); assert(_resMgr); |