summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-03-30 19:20:36 +0200
committerDamiano Galassi <[email protected]>2016-03-30 19:20:36 +0200
commit17afb1a15761cee42411f7f9140a10920aa25bb4 (patch)
tree3512239d08c9fb30d04789a82f8a29445537b12d /macosx
parentbae2b4aaa7e221aa4c48711fa0f188f4c72d092f (diff)
MacGui: allow negative value in the quality slider.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBVideoController.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/macosx/HBVideoController.m b/macosx/HBVideoController.m
index 3e5719f09..a3ed3337c 100644
--- a/macosx/HBVideoController.m
+++ b/macosx/HBVideoController.m
@@ -188,6 +188,8 @@ static void *HBVideoControllerContext = &HBVideoControllerContext;
granularity = [[NSUserDefaults standardUserDefaults]
floatForKey:@"x264CqSliderFractional"];
}
+ fVidQualitySlider.minValue = minValue;
+ fVidQualitySlider.maxValue = maxValue;
[fVidQualitySlider setNumberOfTickMarks:(int)((maxValue - minValue) *
(1.0f / granularity)) + 1];