diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2008-06-24 14:08:12 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2008-06-24 14:08:12 +0400 |
commit | deaef9c5a6a65524b8ccd9c76cdc4f7c51dd7b37 (patch) | |
tree | 61aacad40df0364e0045ebc7479023801bbd938b /src/apps/mplayerc/VolumeCtrl.cpp | |
parent | 9c8b164a11cc4143dade2e6dc6eb2c31b6da2170 (diff) |
FIXED : Wrong Aspect Ratio when using "Save thumbnails" with EVR-Custom
CHANGED : Volume step set to 5 and begin from 0;
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@600 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/VolumeCtrl.cpp')
-rw-r--r-- | src/apps/mplayerc/VolumeCtrl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apps/mplayerc/VolumeCtrl.cpp b/src/apps/mplayerc/VolumeCtrl.cpp index 5a488d7c4..ba38c3a07 100644 --- a/src/apps/mplayerc/VolumeCtrl.cpp +++ b/src/apps/mplayerc/VolumeCtrl.cpp @@ -44,7 +44,7 @@ bool CVolumeCtrl::Create(CWnd* pParentWnd) SetRange(1, 100);
SetPosInternal(AfxGetAppSettings().nVolume);
- SetPageSize(8);
+ SetPageSize(5);
SetLineSize(0);
return(true);
@@ -58,7 +58,7 @@ void CVolumeCtrl::SetPosInternal(int pos) void CVolumeCtrl::IncreaseVolume()
{
- SetPosInternal(GetPos() + GetPageSize());
+ (GetPos() == 1) ? SetPosInternal(GetPos() + GetPageSize() - 1) : SetPosInternal(GetPos() + GetPageSize());
}
void CVolumeCtrl::DecreaseVolume()
|