mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
The default cOsdObject::Show() now automatically calls cOsdMenu::Display() if this is a menu
This commit is contained in:
10
osdbase.c
10
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.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;
|
||||
|
Reference in New Issue
Block a user