[Scummvm-cvs-logs] CVS: scummvm/kyra kyra.cpp,1.9,1.10
Eugene Sandulenko
sev at users.sourceforge.net
Sun Nov 14 06:48:00 CET 2004
Update of /cvsroot/scummvm/scummvm/kyra
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8624
Modified Files:
kyra.cpp
Log Message:
For MT-32 emu graphics should be initialized before Midi, as it prints
ScummVM version on OSD. Now it works with the emu.
Index: kyra.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/kyra/kyra.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- kyra.cpp 14 Nov 2004 14:11:54 -0000 1.9
+++ kyra.cpp 14 Nov 2004 14:46:56 -0000 1.10
@@ -122,6 +122,11 @@
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 @@
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);
More information about the Scummvm-git-logs
mailing list