mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed bug that datetime was not correctly drawn if a submenu implements its own datetime display
This commit is contained in:
parent
bbcb7b0f78
commit
dc64252414
2
HISTORY
2
HISTORY
@ -272,3 +272,5 @@ Version 0.4.0
|
|||||||
its own time display
|
its own time display
|
||||||
- fixed bug that date was drawn every flush in displayreplay
|
- fixed bug that date was drawn every flush in displayreplay
|
||||||
- fixed bug in metrixhd timers menu
|
- fixed bug in metrixhd timers menu
|
||||||
|
- fixed bug that datetime was not correctly drawn if a submenu implements
|
||||||
|
its own datetime display
|
||||||
|
@ -479,15 +479,17 @@ bool cDisplayMenuRootView::RenderDynamicElements(void) {
|
|||||||
defaultTimeDrawn = true;
|
defaultTimeDrawn = true;
|
||||||
updated = true;
|
updated = true;
|
||||||
}
|
}
|
||||||
if (view->DrawDynamicViewElements()){
|
|
||||||
updated = true;
|
implemented = false;
|
||||||
|
if (view->DrawDateTime(implemented)) {
|
||||||
|
defaultDateTimeDrawn = false;
|
||||||
|
} else if (!implemented) {
|
||||||
|
DrawDateTime();
|
||||||
|
defaultDateTimeDrawn = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!view->DrawDateTime()) {
|
if (view->DrawDynamicViewElements()){
|
||||||
defaultDateTimeDrawn = true;
|
updated = true;
|
||||||
DrawDateTime();
|
|
||||||
} else {
|
|
||||||
defaultDateTimeDrawn = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return updated;
|
return updated;
|
||||||
|
@ -46,11 +46,11 @@ bool cDisplayMenuView::DrawHeader(void) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cDisplayMenuView::DrawDateTime(void) {
|
bool cDisplayMenuView::DrawDateTime(bool &implemented) {
|
||||||
if (!ExecuteViewElement(veDateTime)) {
|
if (!ExecuteViewElement(veDateTime)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
implemented = true;
|
||||||
map < string, string > stringTokens;
|
map < string, string > stringTokens;
|
||||||
map < string, int > intTokens;
|
map < string, int > intTokens;
|
||||||
|
|
||||||
@ -67,7 +67,6 @@ bool cDisplayMenuView::DrawTime(bool &implemented) {
|
|||||||
if (!ExecuteViewElement(veTime)) {
|
if (!ExecuteViewElement(veTime)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
implemented = true;
|
implemented = true;
|
||||||
map < string, string > stringTokens;
|
map < string, string > stringTokens;
|
||||||
map < string, int > intTokens;
|
map < string, int > intTokens;
|
||||||
|
@ -37,7 +37,7 @@ public:
|
|||||||
void SetButtonTexts(string *buttonTexts) { this->buttonTexts = buttonTexts; };
|
void SetButtonTexts(string *buttonTexts) { this->buttonTexts = buttonTexts; };
|
||||||
bool DrawBackground(void);
|
bool DrawBackground(void);
|
||||||
virtual bool DrawHeader(void);
|
virtual bool DrawHeader(void);
|
||||||
bool DrawDateTime(void);
|
bool DrawDateTime(bool &implemented);
|
||||||
bool DrawTime(bool &implemented);
|
bool DrawTime(bool &implemented);
|
||||||
bool DrawColorButtons(void);
|
bool DrawColorButtons(void);
|
||||||
bool DrawMessage(eMessageType type, const char *text);
|
bool DrawMessage(eMessageType type, const char *text);
|
||||||
|
Loading…
Reference in New Issue
Block a user