mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
fixed a bug if displaydetailedtext is called without correct menucat
This commit is contained in:
parent
1d5a75af58
commit
ee39eb8066
4
HISTORY
4
HISTORY
@ -30,4 +30,6 @@ Version 0.0.2
|
|||||||
- added extented recording information
|
- added extented recording information
|
||||||
- added token {nummenuitem} as number of item for every list, value starts with 1
|
- added token {nummenuitem} as number of item for every list, value starts with 1
|
||||||
- fixed bug that x and y of subviews was not respected
|
- fixed bug that x and y of subviews was not respected
|
||||||
- if a subview is completely not set in a skin, the default menu is used
|
- if a subview is completely not set in a skin, the default menu is used
|
||||||
|
- fixed a bug if displaydetailedtext is called without correct menucat (mailbox plugin)
|
||||||
|
|
||||||
|
@ -228,8 +228,14 @@ void cDisplayMenuRootView::SetDetailedViewRecording(const cRecording *recording)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void cDisplayMenuRootView::SetDetailedViewText(const char *text) {
|
void cDisplayMenuRootView::SetDetailedViewText(const char *text) {
|
||||||
if (!detailView)
|
if (!detailView) {
|
||||||
detailView = new cDisplayMenuDetailView(subView);
|
if (viewType != svMenuDetailedText) {
|
||||||
|
SetMenu(mcText, true);
|
||||||
|
SetButtonTexts(NULL, NULL, NULL, NULL);
|
||||||
|
} else {
|
||||||
|
detailView = new cDisplayMenuDetailView(subView);
|
||||||
|
}
|
||||||
|
}
|
||||||
detailView->SetText(text);
|
detailView->SetText(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -313,7 +319,6 @@ cFont *cDisplayMenuRootView::GetTextAreaFont(void) {
|
|||||||
|
|
||||||
|
|
||||||
void cDisplayMenuRootView::Render(void) {
|
void cDisplayMenuRootView::Render(void) {
|
||||||
|
|
||||||
if (!view->DrawBackground()) {
|
if (!view->DrawBackground()) {
|
||||||
if (!defaultBackgroundDrawn) {
|
if (!defaultBackgroundDrawn) {
|
||||||
defaultBackgroundDrawn = true;
|
defaultBackgroundDrawn = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user