Commit 6b6d8ba5 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

video filters: set the physical screen brightness if video output is on device screen

Note that the API doesn't support external screen / AirPlay or the iOS Simulator
parent 3b648473
......@@ -258,9 +258,12 @@
_mediaPlayer.hue = (int)self.hueSlider.value;
else if (sender == self.contrastSlider)
_mediaPlayer.contrast = self.contrastSlider.value;
else if (sender == self.brightnessSlider)
_mediaPlayer.brightness = self.brightnessSlider.value;
else if (sender == self.saturationSlider)
else if (sender == self.brightnessSlider) {
if ([self hasExternalDisplay])
_mediaPlayer.brightness = self.brightnessSlider.value;
else
[[UIScreen mainScreen] setBrightness:(self.brightnessSlider.value / 2.)];
} else if (sender == self.saturationSlider)
_mediaPlayer.saturation = self.saturationSlider.value;
else if (sender == self.gammaSlider)
_mediaPlayer.gamma = self.gammaSlider.value;
......
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