From 5d5a13eec758665306cd21af058c118debc2ab66 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 2 Dec 2004 00:33:42 +0000 Subject: Moved MidiDriver creation code into the MidiDriver class (as static methods), same for some other MIDI related stuff svn-id: r15968 --- gui/options.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gui') 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++; -- cgit v1.2.3