diff options
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | recmenu.c | 8 | ||||
-rw-r--r-- | recmenu.h | 5 |
3 files changed, 12 insertions, 3 deletions
@@ -9,4 +9,6 @@ Version 0.0.2 - fixed bug that timemanager does not use configured display time - fixed crash if a channel group is empty +- fixed display of background if recmenu was hidden + @@ -4,6 +4,7 @@ // --- cRecMenu -------------------------------------------------------------
cRecMenu::cRecMenu() {
+ hidden = false;
menuWidth = 50;
menuHeight = 0;
maxMenuHeight = 98;
@@ -36,6 +37,8 @@ cRecMenu::~cRecMenu(void) { recMenuGrid->Clear();
delete recMenuGrid;
}
+ if (hidden)
+ osdView->Activate();
}
/********************************************************************
@@ -280,8 +283,11 @@ void cRecMenu::InitMenuItems(void) { current = menuItems.Next(current);
}
DrawBackground();
- if (scrolling)
+ Flush();
+ if (scrolling) {
DrawScrollbar();
+ Flush();
+ }
}
int cRecMenu::GetHeight(void) {
@@ -9,6 +9,7 @@ class cRecMenu {
private:
+ bool hidden;
int menuWidth;
int menuHeight;
int maxMenuHeight;
@@ -51,8 +52,8 @@ public: void Init(cOsdView *osdView);
void DrawBackground(void);
void Draw(void);
- void Hide(void) { osdView->Deactivate(true); };
- void Show(void) { osdView->Activate(); };
+ void Hide(void) { hidden = true; osdView->Deactivate(true); };
+ void Show(void) { hidden = false; osdView->Activate(); };
void Flush(void) { osdView->Display(); };
virtual eRecMenuState ProcessKey(eKeys Key);
};
|