diff options
author | Max Horn | 2004-12-02 00:33:42 +0000 |
---|---|---|
committer | Max Horn | 2004-12-02 00:33:42 +0000 |
commit | 5d5a13eec758665306cd21af058c118debc2ab66 (patch) | |
tree | 0ccef35e3377f781d7b9bbbdf1b3d2a4993807a8 /gui | |
parent | cdec823d98f37bf47a5e557371c6e5a6ce7e017f (diff) | |
download | scummvm-rg350-5d5a13eec758665306cd21af058c118debc2ab66.tar.gz scummvm-rg350-5d5a13eec758665306cd21af058c118debc2ab66.tar.bz2 scummvm-rg350-5d5a13eec758665306cd21af058c118debc2ab66.zip |
Moved MidiDriver creation code into the MidiDriver class (as static methods), same for some other MIDI related stuff
svn-id: r15968
Diffstat (limited to 'gui')
-rw-r--r-- | gui/options.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/options.cpp b/gui/options.cpp index 38df8f916f..7bbbb98115 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -112,11 +112,11 @@ void OptionsDialog::open() { if (_multiMidiCheckbox) { // Music driver - const MidiDriverDescription *md = getAvailableMidiDrivers(); + const MidiDriverDescription *md = MidiDriver::getAvailableMidiDrivers(); int i = 0; const int midiDriver = ConfMan.hasKey("music_driver", _domain) - ? parseMusicDriver(ConfMan.get("music_driver", _domain)) + ? MidiDriver::parseMusicDriver(ConfMan.get("music_driver", _domain)) : MD_AUTO; while (md->name && md->id != midiDriver) { i++; @@ -190,7 +190,7 @@ void OptionsDialog::close() { ConfMan.set("multi_midi", _multiMidiCheckbox->getState(), _domain); ConfMan.set("native_mt32", _mt32Checkbox->getState(), _domain); ConfMan.set("subtitles", _subCheckbox->getState(), _domain); - const MidiDriverDescription *md = getAvailableMidiDrivers(); + const MidiDriverDescription *md = MidiDriver::getAvailableMidiDrivers(); while (md->name && md->id != (int)_midiPopUp->getSelectedTag()) md++; if (md->name) @@ -315,7 +315,7 @@ int OptionsDialog::addMIDIControls(GuiObject *boss, int yoffset) { yoffset += 16; // Populate it - const MidiDriverDescription *md = getAvailableMidiDrivers(); + const MidiDriverDescription *md = MidiDriver::getAvailableMidiDrivers(); while (md->name) { _midiPopUp->appendEntry(md->description, md->id); md++; |