diff options
author | dynaflash <[email protected]> | 2010-02-08 16:04:22 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2010-02-08 16:04:22 +0000 |
commit | e9d428e473e896b6a8d699c9c745e200869cfd69 (patch) | |
tree | c695d2b75dfcd4bbd8817d06a48766885908b2ea /macosx/Controller.m | |
parent | 4addbbb7ef7545d4c684a845ef424b2264decf1a (diff) |
MacGui: Get rid of % read out in constant quality mode. Now displays rf only.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3104 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.m')
-rw-r--r-- | macosx/Controller.m | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m index f23a83d00..545a263a8 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -5040,20 +5040,15 @@ the user is using "Custom" settings by determining the sender*/ float sliderRfInverse = ([fVidQualitySlider maxValue] - [fVidQualitySlider floatValue]) + [fVidQualitySlider minValue]; /* If the encoder is theora, use the float, otherwise use the inverse float*/ - float sliderRfToPercent; + //float sliderRfToPercent; if ([[fVidEncoderPopUp selectedItem] tag] == HB_VCODEC_THEORA) { - [fVidQualityRFField setStringValue: [NSString stringWithFormat: @"%.2f", [fVidQualitySlider floatValue]]]; - sliderRfToPercent = [fVidQualityRFField floatValue] / ([fVidQualitySlider maxValue] - [fVidQualitySlider minValue]); + [fVidQualityRFField setStringValue: [NSString stringWithFormat: @"%.2f", [fVidQualitySlider floatValue]]]; } else { [fVidQualityRFField setStringValue: [NSString stringWithFormat: @"%.2f", sliderRfInverse]]; - sliderRfToPercent = ( ([fVidQualitySlider maxValue] - [fVidQualitySlider minValue]) - ([fVidQualityRFField floatValue] - [fVidQualitySlider minValue])) / ([fVidQualitySlider maxValue] - [fVidQualitySlider minValue]); } - [fVidConstantCell setTitle: [NSString stringWithFormat: - NSLocalizedString( @"Constant quality: %.2f %%", @"" ), 100 * sliderRfToPercent]]; - [self customSettingUsed: sender]; } |