Update of /cvsroot/audacity/audacity-src/src/prefs
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv6422/prefs
Modified Files:
DevicePrefs.cpp
Log Message:
Fix translation of strings returned from Portaudio...they weren't displaying
properly on non-Latin versions of Windows.
Index: DevicePrefs.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/prefs/DevicePrefs.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- DevicePrefs.cpp 22 May 2009 05:46:00 -0000 1.1
+++ DevicePrefs.cpp 30 May 2009 05:50:23 -0000 1.2
@@ -90,7 +90,7 @@
for (int i = 0; i < nDevices; i++) {
const PaDeviceInfo *info = Pa_GetDeviceInfo(i);
if (info->maxOutputChannels > 0 || info->maxInputChannels > 0) {
- wxString name = LAT1CTOWX(Pa_GetHostApiInfo(info->hostApi)->name);
+ wxString name(Pa_GetHostApiInfo(info->hostApi)->name, wxConvLocal);
if (mHostNames.Index(name) == wxNOT_FOUND) {
mHostNames.Add(name);
mHostLabels.Add(name);
@@ -119,7 +119,7 @@
S.AddPrompt(_("Using:"));
- S.AddFixedText(LAT1CTOWX(Pa_GetVersionText()));
+ S.AddFixedText(wxString(Pa_GetVersionText(), wxConvLocal));
}
S.EndMultiColumn();
}
@@ -171,7 +171,7 @@
for (int i = 0; i < nDevices; i++) {
const PaDeviceInfo *info = Pa_GetDeviceInfo(i);
if (info->hostApi == index) {
- wxString name = LAT1CTOWX(info->name);
+ wxString name(info->name, wxConvLocal);
wxString device = DeviceName(info);
int index;
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs