From add744cb78cc588be94e29b61722e41627d2f9a4 Mon Sep 17 00:00:00 2001 From: dynaflash Date: Fri, 6 Feb 2009 20:39:06 +0000 Subject: [PATCH] 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 --- macosx/Controller.mm | 8 +++++++ macosx/English.lproj/MainMenu.xib | 36 +++++++++++++++---------------- 2 files changed, 26 insertions(+), 18 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 diff --git a/macosx/English.lproj/MainMenu.xib b/macosx/English.lproj/MainMenu.xib index 87403ce94..79a4a784b 100644 --- a/macosx/English.lproj/MainMenu.xib +++ b/macosx/English.lproj/MainMenu.xib @@ -8,7 +8,7 @@ 353.00 YES - + YES @@ -108,7 +108,7 @@ 1 - + 256 YES @@ -517,7 +517,6 @@ {{10, 25}, {714, 305}} - Video @@ -526,7 +525,7 @@ 2 - + 256 YES @@ -1849,10 +1848,10 @@ 4.000000e+00 - 1.000000e+00 - 1.000000e+00 + 0.000000e+00 + 0.000000e+00 0.000000e+00 - 12 + 16 0 YES NO @@ -1876,10 +1875,10 @@ 4.000000e+00 - 1.000000e+00 - 1.000000e+00 + 0.000000e+00 + 0.000000e+00 0.000000e+00 - 12 + 16 0 YES NO @@ -1899,10 +1898,10 @@ 4.000000e+00 - 1.000000e+00 - 1.000000e+00 + 0.000000e+00 + 0.000000e+00 0.000000e+00 - 12 + 16 0 YES NO @@ -1922,10 +1921,10 @@ 4.000000e+00 - 1.000000e+00 - 1.000000e+00 + 0.000000e+00 + 0.000000e+00 0.000000e+00 - 12 + 16 0 YES NO @@ -2014,6 +2013,7 @@ {{10, 25}, {714, 305}} + QXVkaW8gJiBTdWJ0aXRsZXM @@ -2280,14 +2280,14 @@ - + 134217728 YES YES YES - + -- 2.40.0