From 4f4472d4a7ec270954d5f40958773610c6f90e9b Mon Sep 17 00:00:00 2001 From: jojo61 Date: Tue, 20 Nov 2018 16:17:48 +0100 Subject: [PATCH] More Konfigs nad skindesigner fixes --- softhdcuvid.cpp | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/softhdcuvid.cpp b/softhdcuvid.cpp index 5376751..640a98a 100644 --- a/softhdcuvid.cpp +++ b/softhdcuvid.cpp @@ -1080,9 +1080,10 @@ void cMenuSetupSoft::Create(void) Add(new cMenuEditIntItem(tr("Video background color (Alpha)"), (int *)&BackgroundAlpha, 0, 0xFF)); #endif +#ifdef PLACEBO Add(new cMenuEditBoolItem(tr("Use studio levels"), &StudioLevels, trVDR("no"), trVDR("yes"))); - +#endif Add(new cMenuEditBoolItem(tr("60hz display mode"), &_60HzMode, trVDR("no"), trVDR("yes"))); Add(new cMenuEditBoolItem(tr("Soft start a/v sync"), &SoftStartSync, @@ -3246,19 +3247,31 @@ bool cPluginSoftHdDevice::SetupParse(const char *name, const char *value) return true; } if (!strcasecmp(name, "Brightness")) { - VideoSetBrightness(ConfigVideoBrightness = atoi(value)); + int i; + i = atoi(value); + ConfigVideoBrightness = i>100?100:i; + VideoSetBrightness(ConfigVideoBrightness); return true; } if (!strcasecmp(name, "Contrast")) { - VideoSetContrast(ConfigVideoContrast = atoi(value)); + int i; + i = atoi(value); + ConfigVideoContrast = i>100?100:i; + VideoSetContrast(ConfigVideoContrast); return true; } if (!strcasecmp(name, "Saturation")) { - VideoSetSaturation(ConfigVideoSaturation = atoi(value)); + int i; + i = atoi(value); + ConfigVideoSaturation = i>100?100:i; + VideoSetSaturation(ConfigVideoSaturation); return true; } if (!strcasecmp(name, "Gamma")) { - VideoSetGamma(ConfigGamma = atoi(value)); + int i; + i = atoi(value); + ConfigGamma = i>100?100:i; + VideoSetGamma(ConfigGamma); return true; } if (!strcasecmp(name, "TargetColorSpace")) {