summaryrefslogtreecommitdiffstats
path: root/macosx/HBVideoController.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-01-19 15:35:35 +0000
committerritsuka <[email protected]>2015-01-19 15:35:35 +0000
commit2e7330affab701fb1443fec449e2b04690b32e33 (patch)
treeb00b4de54ca6c26d5ecb7c13b15f344292b00988 /macosx/HBVideoController.m
parentea82134f6199f79cb939781cb38dceaa1534dbc1 (diff)
MacGui: enable and fix more compiler warnings in the Xcode project.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6772 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBVideoController.m')
-rw-r--r--macosx/HBVideoController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBVideoController.m b/macosx/HBVideoController.m
index e2d5d760d..5a22333ed 100644
--- a/macosx/HBVideoController.m
+++ b/macosx/HBVideoController.m
@@ -190,13 +190,13 @@ static void *HBVideoControllerContext = &HBVideoControllerContext;
granularity = [[NSUserDefaults standardUserDefaults]
floatForKey:@"x264CqSliderFractional"];
}
- [fVidQualitySlider setNumberOfTickMarks:((maxValue - minValue) *
+ [fVidQualitySlider setNumberOfTickMarks:(int)((maxValue - minValue) *
(1.0f / granularity)) + 1];
// Replace the slider transformer with a new one,
// configured with the new max/min/direction values.
[fVidQualitySlider unbind:@"value"];
- HBQualityTransformer *transformer = [[[HBQualityTransformer alloc] initWithReversedDirection:direction min:minValue max:maxValue] autorelease];
+ HBQualityTransformer *transformer = [[[HBQualityTransformer alloc] initWithReversedDirection:(direction != 0) min:minValue max:maxValue] autorelease];
[fVidQualitySlider bind:@"value" toObject:self withKeyPath:@"self.video.quality" options:@{NSValueTransformerBindingOption: transformer}];
}