summaryrefslogtreecommitdiff
path: root/osdbase.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-06-12 10:46:34 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-06-12 10:46:34 +0200
commiteb8ad6b46d2d65b6fd532b67818c4fdf7a00fc9b (patch)
tree9ba288b595d7d8540fe987dab823efd675109401 /osdbase.c
parent7a990fcf88c6511c1b9dc17d9a26109c91123195 (diff)
downloadvdr-eb8ad6b46d2d65b6fd532b67818c4fdf7a00fc9b.tar.gz
vdr-eb8ad6b46d2d65b6fd532b67818c4fdf7a00fc9b.tar.bz2
Added cOsdMenu::SetCols() to allow adjusting the menu columns
Diffstat (limited to 'osdbase.c')
-rw-r--r--osdbase.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/osdbase.c b/osdbase.c
index ad07dcff..7d03dbd0 100644
--- a/osdbase.c
+++ b/osdbase.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osdbase.c 1.16 2005/06/12 09:55:56 kls Exp $
+ * $Id: osdbase.c 1.17 2005/06/12 10:44:22 kls Exp $
*/
#include "osdbase.h"
@@ -74,11 +74,7 @@ cOsdMenu::cOsdMenu(const char *Title, int c0, int c1, int c2, int c3, int c4)
hasHotkeys = false;
title = NULL;
SetTitle(Title);
- cols[0] = c0;
- cols[1] = c1;
- cols[2] = c2;
- cols[3] = c3;
- cols[4] = c4;
+ SetCols(c0, c1, c2, c3, c4);
first = 0;
current = marked = -1;
subMenu = NULL;
@@ -116,6 +112,15 @@ const char *cOsdMenu::hk(const char *s)
return s;
}
+void cOsdMenu::SetCols(int c0, int c1, int c2, int c3, int c4)
+{
+ cols[0] = c0;
+ cols[1] = c1;
+ cols[2] = c2;
+ cols[3] = c3;
+ cols[4] = c4;
+}
+
void cOsdMenu::SetHasHotkeys(void)
{
hasHotkeys = true;