summaryrefslogtreecommitdiff
path: root/osd.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-05-19 15:50:11 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-05-19 15:50:11 +0200
commit9f9d6a8a9354960eb9c42f9c45ed507f05804ff4 (patch)
tree6e7de2a8ce6d3cedc78038e4d70ef2ff56f24528 /osd.c
parent82725f53b5c23d3436f3b71845a1b61447b9780f (diff)
downloadvdr-9f9d6a8a9354960eb9c42f9c45ed507f05804ff4.tar.gz
vdr-9f9d6a8a9354960eb9c42f9c45ed507f05804ff4.tar.bz2
Implemented cStatusMonitor to allow plugins to set up a status monitor
Diffstat (limited to 'osd.c')
-rw-r--r--osd.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/osd.c b/osd.c
index 08b0bf65..09285c00 100644
--- a/osd.c
+++ b/osd.c
@@ -4,13 +4,14 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.c 1.26 2002/05/18 14:00:21 kls Exp $
+ * $Id: osd.c 1.27 2002/05/19 12:56:57 kls Exp $
*/
#include "osd.h"
#include <string.h>
#include "dvbapi.h"
#include "i18n.h"
+#include "status.h"
// --- cOsd ------------------------------------------------------------------
@@ -430,8 +431,11 @@ void cOsdMenu::Display(void)
}
for (int i = first; i < count; i++) {
cOsdItem *item = Get(i);
- if (item)
+ if (item) {
item->Display(i - first, i == current ? clrBlack : clrWhite, i == current ? clrCyan : clrBackground);
+ if (i == current)
+ cStatusMonitor::MsgOsdCurrentItem(item->Text());
+ }
if (++n == MAXOSDITEMS) //TODO get this from Interface!!!
break;
}
@@ -455,8 +459,11 @@ void cOsdMenu::RefreshCurrent(void)
void cOsdMenu::DisplayCurrent(bool Current)
{
cOsdItem *item = Get(current);
- if (item)
+ if (item) {
item->Display(current - first, Current ? clrBlack : clrWhite, Current ? clrCyan : clrBackground);
+ if (Current)
+ cStatusMonitor::MsgOsdCurrentItem(item->Text());
+ }
}
void cOsdMenu::Clear(void)