Fix some Set/GetValue's Sonic forgot.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5088 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice 2010-02-19 23:20:13 +00:00
parent f833cc7601
commit f0716a30b7
1 changed files with 5 additions and 5 deletions

View File

@ -98,9 +98,9 @@ void DSPConfigDialogLLE::AddBackend(const char* backend)
m_BackendSelection->Append(wxString::FromAscii(backend)); m_BackendSelection->Append(wxString::FromAscii(backend));
#ifdef __APPLE__ #ifdef __APPLE__
m_BackendSelection->SetValue(wxString::FromAscii(ac_Config.sBackend)); int num = m_BackendSelection->FindString(wxString::FromAscii(ac_Config.sBackend));
#else #else
m_BackendSelection->SetValue(wxString::FromAscii(ac_Config.sBackend.c_str())); int num = m_BackendSelection->FindString(wxString::FromAscii(ac_Config.sBackend.c_str()));
#endif #endif
} }
@ -127,9 +127,9 @@ void DSPConfigDialogLLE::SettingsChanged(wxCommandEvent& event)
ac_Config.m_EnableThrottle = m_buttonEnableThrottle->GetValue(); ac_Config.m_EnableThrottle = m_buttonEnableThrottle->GetValue();
#ifdef __APPLE__ #ifdef __APPLE__
strncpy(ac_Config.sBackend, m_BackendSelection->GetValue().mb_str(), 128); strncpy(ac_Config.sBackend, m_BackendSelection->GetStringSelection().mb_str(), 128);
#else #else
ac_Config.sBackend = m_BackendSelection->GetValue().mb_str(); ac_Config.sBackend = m_BackendSelection->GetStringSelection().mb_str();
#endif #endif
ac_Config.Update(); ac_Config.Update();
g_Config.Save(); g_Config.Save();
@ -149,5 +149,5 @@ bool DSPConfigDialogLLE::SupportsVolumeChanges(std::string backend)
void DSPConfigDialogLLE::BackendChanged(wxCommandEvent& event) 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())));
} }