diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-05 15:35:06 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-05 15:35:06 +0100 |
commit | c0f1fc817ea9e3bbe64b4a9ebbff5ba13c0dd3c9 (patch) | |
tree | 2eb5b0de091be2fc672bebd4cec1dc9890f90f48 /osdbase.c | |
parent | 526c94f017e2f484abf447d59b8fd2f2c3ab3c00 (diff) | |
download | vdr-c0f1fc817ea9e3bbe64b4a9ebbff5ba13c0dd3c9.tar.gz vdr-c0f1fc817ea9e3bbe64b4a9ebbff5ba13c0dd3c9.tar.bz2 |
The default cOsdObject::Show() now automatically calls cOsdMenu::Display() if this is a menu
Diffstat (limited to 'osdbase.c')
-rw-r--r-- | osdbase.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: osdbase.c 1.26 2006/01/05 13:26:00 kls Exp $ + * $Id: osdbase.c 1.27 2006/01/05 15:35:06 kls Exp $ */ #include "osdbase.h" @@ -59,6 +59,14 @@ eOSState cOsdItem::ProcessKey(eKeys Key) return Key == kOk ? state : osUnknown; } +// --- cOsdObject ------------------------------------------------------------ + +void cOsdObject::Show(void) +{ + if (isMenu) + ((cOsdMenu *)this)->Display(); +} + // --- cOsdMenu -------------------------------------------------------------- cSkinDisplayMenu *cOsdMenu::displayMenu = NULL; |