diff options
author | dynaflash <[email protected]> | 2009-02-06 20:39:06 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2009-02-06 20:39:06 +0000 |
commit | add744cb78cc588be94e29b61722e41627d2f9a4 (patch) | |
tree | 01361848a971c47daa8c5b24309cb318b9d02981 /macosx/Controller.mm | |
parent | c00f61d9ac241b5f0c170a24e0faf49bb7fda03c (diff) |
MacGui: Implement DRC 0.0.
-Though the default is set to 0.0 in the xib, any user presets ( including built in's) will set to the previous minimum of 1.0 or higher.
- Since there is nothing to set between 0.0 and 1.0 the slider is set to jump to 1.0 as soon as you go above 0.0
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2126 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r-- | macosx/Controller.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index a8e0e9ef7..7ab9aac22 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -5105,6 +5105,14 @@ the user is using "Custom" settings by determining the sender*/ drcSlider = fAudTrack4DrcSlider; drcField = fAudTrack4DrcField; } + + /* If we are between 0.0 and 1.0 on the slider, snap it to 1.0 */ + if ([drcSlider floatValue] > 0.0 && [drcSlider floatValue] < 1.0) + { + [drcSlider setFloatValue:1.0]; + } + + [drcField setStringValue: [NSString stringWithFormat: @"%.2f", [drcSlider floatValue]]]; /* For now, do not call this until we have an intelligent way to determine audio track selections * compared to presets |