diff options
author | louis <louis.braun@gmx.de> | 2015-03-20 15:28:01 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2015-03-20 15:28:01 +0100 |
commit | e6eea29fda90b7151fb459c353394155287da4df (patch) | |
tree | 2e505535a3e7595ada2a385ee06908c8c8bab590 | |
parent | 5328a7dd9ae0b3d462fb7848668ffc5bd0c38354 (diff) | |
download | vdr-plugin-tvguideng-e6eea29fda90b7151fb459c353394155287da4df.tar.gz vdr-plugin-tvguideng-e6eea29fda90b7151fb459c353394155287da4df.tar.bz2 |
fixed display of background if recmenu was hidden
-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);
};
|