summaryrefslogtreecommitdiff
path: root/dxr3.c
diff options
context:
space:
mode:
authorscop <scop>2005-08-01 17:45:33 +0000
committerscop <scop>2005-08-01 17:45:33 +0000
commite1a64074adfcf0b075f0267aa8b06810d96de7b8 (patch)
treebc28c8c12f955d67fc2400f9debcabbb0712e8dc /dxr3.c
parent87405c497570c356759c51674eb856902338eb80 (diff)
downloadvdr-plugin-dxr3-e1a64074adfcf0b075f0267aa8b06810d96de7b8.tar.gz
vdr-plugin-dxr3-e1a64074adfcf0b075f0267aa8b06810d96de7b8.tar.bz2
Move OSD flush rate setting to UI.
Diffstat (limited to 'dxr3.c')
-rw-r--r--dxr3.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/dxr3.c b/dxr3.c
index b39a5b8..3b349a4 100644
--- a/dxr3.c
+++ b/dxr3.c
@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
- * $Id: dxr3.c,v 1.1.2.14 2005/07/06 18:04:46 scop Exp $
+ * $Id: dxr3.c,v 1.1.2.15 2005/08/01 17:45:33 scop Exp $
*
*/
@@ -82,6 +82,9 @@ cMenuSetupDxr3::cMenuSetupDxr3(void)
&newVideoMode, 3, menuVideoModes));
newHideMenu = cDxr3ConfigData::Instance().GetHideMenu();
Add(new cMenuEditBoolItem(tr("Hide main menu entry"), &newHideMenu));
+ newOsdFlushRate = cDxr3ConfigData::Instance().GetOsdFlushRate();
+ Add(new cMenuEditIntItem(tr("OSD flush rate (ms)"),
+ &newOsdFlushRate, 0, 255));
}
// ==================================
@@ -96,6 +99,8 @@ void cMenuSetupDxr3::Store(void)
cDxr3ConfigData::Instance().SetVideoMode((eVideoMode) newVideoMode));
SetupStore("HideMenu",
cDxr3ConfigData::Instance().SetHideMenu(newHideMenu));
+ SetupStore("OsdFlushRate",
+ cDxr3ConfigData::Instance().SetOsdFlushRate(newOsdFlushRate));
}
// ==================================
@@ -201,6 +206,11 @@ bool cPluginDxr3::SetupParse(const char *Name, const char *Value)
cDxr3ConfigData::Instance().SetHideMenu(atoi(Value));
return true;
}
+ if (!strcasecmp(Name, "OsdFlushRate"))
+ {
+ cDxr3ConfigData::Instance().SetOsdFlushRate(atoi(Value));
+ return true;
+ }
return false;
}