From 1e6b191a97edad3cd634b4972f53873d3d5001d9 Mon Sep 17 00:00:00 2001 From: dynaflash Date: Mon, 2 Nov 2009 17:35:54 +0000 Subject: MacGui: Fix the RF and QP labels in the constant quality slider when switching between video encoders. Patch by Rodeo. - http://forum.handbrake.fr/viewtopic.php?f=4&t=12838 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2909 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/Controller.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index d364c0dad..138d1f9ac 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -4567,7 +4567,7 @@ the user is using "Custom" settings by determining the sender*/ * so that we can choose a new similar value on the new slider scale */ float previousMaxValue = [fVidQualitySlider maxValue]; float previousPercentOfSliderScale = [fVidQualitySlider floatValue] / ([fVidQualitySlider maxValue] - [fVidQualitySlider minValue] + 1); - NSString * qpRFLabelString = @"RF:"; + NSString * qpRFLabelString = @"QP:"; /* x264 0-51 */ if ([[fVidEncoderPopUp selectedItem] tag] == HB_VCODEC_X264) { @@ -4576,6 +4576,7 @@ the user is using "Custom" settings by determining the sender*/ /* As x264 allows for qp/rf values that are fractional, we get the value from the preferences */ int fractionalGranularity = 1 / [[NSUserDefaults standardUserDefaults] floatForKey:@"x264CqSliderFractional"]; [fVidQualitySlider setNumberOfTickMarks:(([fVidQualitySlider maxValue] - [fVidQualitySlider minValue]) * fractionalGranularity) + 1]; + qpRFLabelString = @"RF:"; } /* ffmpeg 1-31 */ if ([[fVidEncoderPopUp selectedItem] tag] == HB_VCODEC_FFMPEG ) -- cgit v1.2.3