From c9150927a9e4aa00c64419503c8d3fc2d363f68b Mon Sep 17 00:00:00 2001 From: Martin Schirrmacher Date: Fri, 26 Sep 2014 17:24:23 +0200 Subject: add option to draw the menu background over the entire height --- setup.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'setup.c') diff --git a/setup.c b/setup.c index da71b5f6..ceb5d106 100644 --- a/setup.c +++ b/setup.c @@ -269,6 +269,7 @@ void cFlatSetup::Store(void) { SetupStore("ChannelBitrateShowCalcInterval", Config.ChannelBitrateShowCalcInterval); SetupStore("TopBarHideClockText", Config.TopBarHideClockText); SetupStore("ChannelTimeLeft", Config.ChannelTimeLeft); + SetupStore("MenuFullOsd", Config.MenuFullOsd); Config.Init(); } @@ -411,6 +412,7 @@ bool cFlatSetupGeneral::SetupParse(const char *Name, const char *Value) { else if (strcmp(Name, "ChannelBitrateShowCalcInterval") == 0) SetupConfig->ChannelBitrateShowCalcInterval = atoi(Value); else if (strcmp(Name, "TopBarHideClockText") == 0) SetupConfig->TopBarHideClockText = atoi(Value); else if (strcmp(Name, "ChannelTimeLeft") == 0) SetupConfig->ChannelTimeLeft = atoi(Value); + else if (strcmp(Name, "MenuFullOsd") == 0) SetupConfig->MenuFullOsd = atoi(Value); else return false; return true; @@ -534,6 +536,7 @@ void cFlatSetupGeneral::SaveCurrentSettings(void) { Config.Store("ChannelBitrateShowCalcInterval", SetupConfig->ChannelBitrateShowCalcInterval, *Filename); Config.Store("TopBarHideClockText", SetupConfig->TopBarHideClockText, *Filename); Config.Store("ChannelTimeLeft", SetupConfig->ChannelTimeLeft, *Filename); + Config.Store("MenuFullOsd", SetupConfig->MenuFullOsd, *Filename); cString msg = cString::sprintf("%s %s", tr("saved settings in file:"), *File); Skins.Message(mtInfo, msg); @@ -803,6 +806,7 @@ void cFlatSetupMenu::Setup(void) { Add(new cMenuEditBoolItem(tr("Show additional EPG info"), &SetupConfig->EpgAdditionalInfoShow)); Add(new cMenuEditBoolItem(tr("Show reruns in EPG info"), &SetupConfig->EpgRerunsShow)); Add(new cMenuEditPrcItem(tr("Main menuitem scale"), &SetupConfig->MainMenuItemScale, 0.2, 1, 0)); + Add(new cMenuEditBoolItem(tr("Menu draw background over the entire height"), &SetupConfig->MenuFullOsd)); Add(new cMenuEditStraItem(tr("Menu channel view"), &SetupConfig->MenuChannelView, MenuChannelViews.Size(), &MenuChannelViews[0])); Add(new cMenuEditStraItem(tr("Menu timer view"), &SetupConfig->MenuTimerView, MenuTimerViews.Size(), &MenuTimerViews[0])); -- cgit v1.2.3