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:
@@ -228,8 +228,14 @@ void cDisplayMenuRootView::SetDetailedViewRecording(const cRecording *recording)
|
||||
}
|
||||
|
||||
void cDisplayMenuRootView::SetDetailedViewText(const char *text) {
|
||||
if (!detailView)
|
||||
detailView = new cDisplayMenuDetailView(subView);
|
||||
if (!detailView) {
|
||||
if (viewType != svMenuDetailedText) {
|
||||
SetMenu(mcText, true);
|
||||
SetButtonTexts(NULL, NULL, NULL, NULL);
|
||||
} else {
|
||||
detailView = new cDisplayMenuDetailView(subView);
|
||||
}
|
||||
}
|
||||
detailView->SetText(text);
|
||||
}
|
||||
|
||||
@@ -313,7 +319,6 @@ cFont *cDisplayMenuRootView::GetTextAreaFont(void) {
|
||||
|
||||
|
||||
void cDisplayMenuRootView::Render(void) {
|
||||
|
||||
if (!view->DrawBackground()) {
|
||||
if (!defaultBackgroundDrawn) {
|
||||
defaultBackgroundDrawn = true;
|
||||
|
Reference in New Issue
Block a user