From ab6a38a18f803bdabd513c1c23817f4b78598fd5 Mon Sep 17 00:00:00 2001 From: death2droid Date: Thu, 21 May 2009 10:08:43 +0000 Subject: [PATCH] Fix of the volume slider in LLE git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3266 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_DSP_LLE/Src/DSPConfigDlgLLE.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/Plugins/Plugin_DSP_LLE/Src/DSPConfigDlgLLE.cpp b/Source/Plugins/Plugin_DSP_LLE/Src/DSPConfigDlgLLE.cpp index 3746121cb7..6982932737 100644 --- a/Source/Plugins/Plugin_DSP_LLE/Src/DSPConfigDlgLLE.cpp +++ b/Source/Plugins/Plugin_DSP_LLE/Src/DSPConfigDlgLLE.cpp @@ -92,17 +92,18 @@ void DSPConfigDialogLLE::AddBackend(const char* backend) // Update value m_BackendSelection->Append(wxString::FromAscii(backend)); + // Unfortunately, DSound is the only API having a volume setting... +#ifndef _WIN32 + m_volumeSlider->Disable(); + m_volumeText->Disable(); +#endif + #ifdef __APPLE__ m_BackendSelection->SetValue(wxString::FromAscii(ac_Config.sBackend)); #else m_BackendSelection->SetValue(wxString::FromAscii(ac_Config.sBackend.c_str())); #endif } - // Unfortunately, DSound is the only API having a volume setting... -#ifndef _WIN32 - m_volumeSlider->Disable(); - m_volumeText->Disable(); -#endif DSPConfigDialogLLE::~DSPConfigDialogLLE() {