[Scummvm-cvs-logs] scummvm master -> 506bd3c3a64c56868d8445745310ef912c9b7403
athrxx
athrxx at scummvm.org
Mon Jun 6 01:18:31 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
506bd3c3a6 AUDIO: cleanup MidiDriver::detectDevice()
Commit: 506bd3c3a64c56868d8445745310ef912c9b7403
https://github.com/scummvm/scummvm/commit/506bd3c3a64c56868d8445745310ef912c9b7403
Author: athrxx (athrxx at scummvm.org)
Date: 2011-06-05T16:15:59-07:00
Commit Message:
AUDIO: cleanup MidiDriver::detectDevice()
(wrong enum usage)
Changed paths:
audio/mididrv.cpp
diff --git a/audio/mididrv.cpp b/audio/mididrv.cpp
index 03cea51..69214fd 100644
--- a/audio/mididrv.cpp
+++ b/audio/mididrv.cpp
@@ -128,7 +128,7 @@ Common::String MidiDriver::getDeviceString(DeviceHandle handle, DeviceStringType
MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) {
// Query the selected music device (defaults to MT_AUTO device).
DeviceHandle hdl = getDeviceHandle(ConfMan.get("music_driver"));
- DeviceHandle reslt = MT_AUTO;
+ DeviceHandle reslt = 0;
_forceTypeMT32 = false;
@@ -208,7 +208,7 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) {
}
}
- reslt = MT_AUTO;
+ reslt = 0;
// If the selected driver did not match the flags setting,
// we try to determine a suitable and "optimal" music driver.
@@ -246,7 +246,7 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) {
GUI::MessageDialog dialog(warningMsg);
dialog.runModal();
}
- hdl = MT_AUTO;
+ hdl = 0;
}
}
@@ -263,7 +263,7 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) {
return hdl;
else
// No warning here, since the user hasn't expressly requested anything.
- hdl = MT_AUTO;
+ hdl = 0;
}
}
}
@@ -281,7 +281,7 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) {
return hdl;
else
// No warning here, since the user hasn't expressly requested anything.
- hdl = MT_AUTO;
+ hdl = 0;
}
}
}
@@ -337,7 +337,7 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) {
return hdl;
else
// No warning here, since the user hasn't expressly requested anything.
- hdl = MT_AUTO;
+ hdl = 0;
}
}
}
More information about the Scummvm-git-logs
mailing list