From f0716a30b736df924173de48835411184d1c9554 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Fri, 19 Feb 2010 23:20:13 +0000 Subject: [PATCH] Fix some Set/GetValue's Sonic forgot. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5088 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_DSP_LLE/Src/DSPConfigDlgLLE.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Plugins/Plugin_DSP_LLE/Src/DSPConfigDlgLLE.cpp b/Source/Plugins/Plugin_DSP_LLE/Src/DSPConfigDlgLLE.cpp index 6dc5e33941..c7137012e2 100644 --- a/Source/Plugins/Plugin_DSP_LLE/Src/DSPConfigDlgLLE.cpp +++ b/Source/Plugins/Plugin_DSP_LLE/Src/DSPConfigDlgLLE.cpp @@ -98,9 +98,9 @@ void DSPConfigDialogLLE::AddBackend(const char* backend) m_BackendSelection->Append(wxString::FromAscii(backend)); #ifdef __APPLE__ - m_BackendSelection->SetValue(wxString::FromAscii(ac_Config.sBackend)); + int num = m_BackendSelection->FindString(wxString::FromAscii(ac_Config.sBackend)); #else - m_BackendSelection->SetValue(wxString::FromAscii(ac_Config.sBackend.c_str())); + int num = m_BackendSelection->FindString(wxString::FromAscii(ac_Config.sBackend.c_str())); #endif } @@ -127,9 +127,9 @@ void DSPConfigDialogLLE::SettingsChanged(wxCommandEvent& event) ac_Config.m_EnableThrottle = m_buttonEnableThrottle->GetValue(); #ifdef __APPLE__ - strncpy(ac_Config.sBackend, m_BackendSelection->GetValue().mb_str(), 128); + strncpy(ac_Config.sBackend, m_BackendSelection->GetStringSelection().mb_str(), 128); #else - ac_Config.sBackend = m_BackendSelection->GetValue().mb_str(); + ac_Config.sBackend = m_BackendSelection->GetStringSelection().mb_str(); #endif ac_Config.Update(); g_Config.Save(); @@ -149,5 +149,5 @@ bool DSPConfigDialogLLE::SupportsVolumeChanges(std::string backend) void DSPConfigDialogLLE::BackendChanged(wxCommandEvent& event) { - m_volumeSlider->Enable(SupportsVolumeChanges(std::string(m_BackendSelection->GetValue().mb_str()))); + m_volumeSlider->Enable(SupportsVolumeChanges(std::string(m_BackendSelection->GetStringSelection().mb_str()))); }