1
0
mirror of https://github.com/jojo61/vdr-plugin-softhdcuvid.git synced 2023-10-10 13:37:41 +02:00

More Konfigs nad skindesigner fixes

This commit is contained in:
jojo61 2018-11-20 16:17:48 +01:00
parent 2253957c11
commit 4f4472d4a7

View File

@ -1080,9 +1080,10 @@ void cMenuSetupSoft::Create(void)
Add(new cMenuEditIntItem(tr("Video background color (Alpha)"), Add(new cMenuEditIntItem(tr("Video background color (Alpha)"),
(int *)&BackgroundAlpha, 0, 0xFF)); (int *)&BackgroundAlpha, 0, 0xFF));
#endif #endif
#ifdef PLACEBO
Add(new cMenuEditBoolItem(tr("Use studio levels"), Add(new cMenuEditBoolItem(tr("Use studio levels"),
&StudioLevels, trVDR("no"), trVDR("yes"))); &StudioLevels, trVDR("no"), trVDR("yes")));
#endif
Add(new cMenuEditBoolItem(tr("60hz display mode"), &_60HzMode, Add(new cMenuEditBoolItem(tr("60hz display mode"), &_60HzMode,
trVDR("no"), trVDR("yes"))); trVDR("no"), trVDR("yes")));
Add(new cMenuEditBoolItem(tr("Soft start a/v sync"), &SoftStartSync, 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; return true;
} }
if (!strcasecmp(name, "Brightness")) { if (!strcasecmp(name, "Brightness")) {
VideoSetBrightness(ConfigVideoBrightness = atoi(value)); int i;
i = atoi(value);
ConfigVideoBrightness = i>100?100:i;
VideoSetBrightness(ConfigVideoBrightness);
return true; return true;
} }
if (!strcasecmp(name, "Contrast")) { if (!strcasecmp(name, "Contrast")) {
VideoSetContrast(ConfigVideoContrast = atoi(value)); int i;
i = atoi(value);
ConfigVideoContrast = i>100?100:i;
VideoSetContrast(ConfigVideoContrast);
return true; return true;
} }
if (!strcasecmp(name, "Saturation")) { if (!strcasecmp(name, "Saturation")) {
VideoSetSaturation(ConfigVideoSaturation = atoi(value)); int i;
i = atoi(value);
ConfigVideoSaturation = i>100?100:i;
VideoSetSaturation(ConfigVideoSaturation);
return true; return true;
} }
if (!strcasecmp(name, "Gamma")) { if (!strcasecmp(name, "Gamma")) {
VideoSetGamma(ConfigGamma = atoi(value)); int i;
i = atoi(value);
ConfigGamma = i>100?100:i;
VideoSetGamma(ConfigGamma);
return true; return true;
} }
if (!strcasecmp(name, "TargetColorSpace")) { if (!strcasecmp(name, "TargetColorSpace")) {