Use current configuration for setup menu.

This commit is contained in:
Johns 2011-12-15 16:02:32 +01:00
parent 5ca9bedda8
commit c79d992a81
2 changed files with 10 additions and 6 deletions

View File

@ -1,6 +1,7 @@
User johns User johns
Date: Date:
Use current configuration for setup menu.
Initial support of replay. Initial support of replay.
Workaround for libva-driver-intel 1080i problems. Workaround for libva-driver-intel 1080i problems.
DisplayFrame displays now only a single frame. DisplayFrame displays now only a single frame.

View File

@ -48,8 +48,10 @@ static class cSoftHdDevice *MyDevice;
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
static char ConfigMakePrimary = 1; static char ConfigMakePrimary; ///< config primary wanted
static char DoMakePrimary; static char ConfigVideoDeinterlace; ///< config deinterlace
static char ConfigVideoScaling; ///< config scaling
static char DoMakePrimary; ///< flag switch primary
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -277,9 +279,12 @@ cMenuSetupSoft::cMenuSetupSoft(void)
// cMenuEditBoolItem cMenuEditBitItem cMenuEditNumItem // cMenuEditBoolItem cMenuEditBitItem cMenuEditNumItem
// cMenuEditStrItem cMenuEditStraItem cMenuEditIntItem // cMenuEditStrItem cMenuEditStraItem cMenuEditIntItem
MakePrimary = ConfigMakePrimary;
Add(new cMenuEditBoolItem(tr("Make primary device"), &MakePrimary, Add(new cMenuEditBoolItem(tr("Make primary device"), &MakePrimary,
tr("no"), tr("yes"))); tr("no"), tr("yes")));
Deinterlace = ConfigVideoDeinterlace;
Add(new cMenuEditStraItem(tr("Deinterlace"), &Deinterlace, 5, deinterlace)); Add(new cMenuEditStraItem(tr("Deinterlace"), &Deinterlace, 5, deinterlace));
Scaling = ConfigVideoScaling;
Add(new cMenuEditStraItem(tr("Scaling"), &Scaling, 4, scaling)); Add(new cMenuEditStraItem(tr("Scaling"), &Scaling, 4, scaling));
} }
@ -752,13 +757,11 @@ bool cPluginSoftHdDevice::SetupParse(const char *name, const char *value)
return true; return true;
} }
if (!strcmp(name, "Deinterlace")) { if (!strcmp(name, "Deinterlace")) {
printf("Deinterlace: %d\n", atoi(value)); VideoSetDeinterlace(ConfigVideoDeinterlace = atoi(value));
VideoSetDeinterlace(atoi(value));
return true; return true;
} }
if (!strcmp(name, "Scaling")) { if (!strcmp(name, "Scaling")) {
printf("Scaling: %d\n", atoi(value)); VideoSetScaling(ConfigVideoScaling = atoi(value));
VideoSetScaling(atoi(value));
return true; return true;
} }