summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-05-23 09:54:06 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-05-23 09:54:06 +0200
commit4c5aedbd797ea4308974a3db4107cc8e32f50d17 (patch)
tree13e62bf3e16422dff63d77261540f7a92ec83d8a /menu.c
parentd10624fbcac3a4e480543c40f09faea31561414c (diff)
downloadvdr-4c5aedbd797ea4308974a3db4107cc8e32f50d17.tar.gz
vdr-4c5aedbd797ea4308974a3db4107cc8e32f50d17.tar.bz2
Added SetText() to cMenuText
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 3c86c193..be4227e7 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.303 2004/05/23 09:39:09 kls Exp $
+ * $Id: menu.c 1.304 2004/05/23 09:47:14 kls Exp $
*/
#include "menu.h"
@@ -502,7 +502,19 @@ eOSState cMenuChannels::ProcessKey(eKeys Key)
cMenuText::cMenuText(const char *Title, const char *Text, eDvbFont Font)
:cOsdMenu(Title)
{
- text = Text;
+ text = NULL;
+ SetText(Text);
+}
+
+cMenuText::~cMenuText()
+{
+ free(text);
+}
+
+void cMenuText::SetText(const char *Text)
+{
+ free(text);
+ text = strdup(Text);
}
void cMenuText::Display(void)