diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-07-14 19:53:11 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-07-14 19:53:11 +0400 |
commit | 4b616e3b7c79b34ea29d62caa2116ed274713a38 (patch) | |
tree | f9083c4bf19b5df59324e27db306b0e2f7009649 /src/apps/mplayerc/PPageAudioSwitcher.cpp | |
parent | 9d042ba4e8c0ee43a173134aa755317b5f3e3629 (diff) |
legacy branch: merge r3209-r3382 from trunk (the translations aren't up to date with any implications this may have)legacy
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/branches/legacy@3383 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PPageAudioSwitcher.cpp')
-rw-r--r-- | src/apps/mplayerc/PPageAudioSwitcher.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/apps/mplayerc/PPageAudioSwitcher.cpp b/src/apps/mplayerc/PPageAudioSwitcher.cpp index 373d861c2..e269c3b60 100644 --- a/src/apps/mplayerc/PPageAudioSwitcher.cpp +++ b/src/apps/mplayerc/PPageAudioSwitcher.cpp @@ -363,3 +363,14 @@ BOOL CPPageAudioSwitcher::OnToolTipNotify(UINT id, NMHDR * pNMHDR, LRESULT * pRe return TRUE; // message was handled
}
+
+void CPPageAudioSwitcher::OnCancel()
+{
+ AppSettings& s = AfxGetAppSettings();
+
+ if (m_AudioBoostPos != (int)(s.dAudioBoost_dB*10+0.1)) {
+ ((CMainFrame*)GetParentFrame())->SetVolumeBoost(s.dAudioBoost_dB);
+ }
+
+ __super::OnCancel();
+}
|