Commit d86c606b authored by David Fuhrmann's avatar David Fuhrmann Committed by Felix Paul Kühne

macosx: auto-apply brightness-threshold value in video effects panel

(cherry picked from commit d23ddc933c7505d54fd9fd19040803d5b8c8f888)
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 5afb0224
......@@ -833,8 +833,9 @@ static VLCVideoEffects *_o_sharedInstance = nil;
- (IBAction)enableAdjustBrightnessThreshold:(id)sender
{
VLCCoreInteraction *vci_si = [VLCCoreInteraction sharedInstance];
if (sender == o_adjust_reset_btn) {
VLCCoreInteraction *vci_si = [VLCCoreInteraction sharedInstance];
[o_adjust_brightness_sld setFloatValue: 1.0];
[o_adjust_contrast_sld setFloatValue: 1.0];
[o_adjust_gamma_sld setFloatValue: 1.0];
......@@ -851,7 +852,8 @@ static VLCVideoEffects *_o_sharedInstance = nil;
[vci_si setVideoFilterProperty: "hue" forFilter: "adjust" integer: 0.0];
[vci_si setVideoFilterProperty: "saturation" forFilter: "adjust" float: 1.0];
} else
config_PutInt(p_intf, "brightness-threshold", [o_adjust_brightness_ckb state]);
[vci_si setVideoFilterProperty: "brightness-threshold" forFilter: "adjust" boolean: [o_adjust_brightness_ckb state]];
}
- (IBAction)enableSharpen:(id)sender
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment