diff options
-rw-r--r-- | displaymenu.c | 10 | ||||
-rw-r--r-- | displaymenu.h | 1 |
2 files changed, 8 insertions, 3 deletions
diff --git a/displaymenu.c b/displaymenu.c index 63371a0..76e3078 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -588,7 +588,7 @@ void cNopacityDisplayMenu::SetEvent(const cEvent *Event) { return; menuView->AdjustContentBackground(this->MenuCategory(), menuCategoryLast, videoWindowRect); detailView = new cNopacityDetailView(osd, Event, menuView->GetPixmapScrollbar(), menuView->GetPixmapScrollbarBack()); - detailView->Render(); + deatilViewRenderDone = false; } void cNopacityDisplayMenu::SetRecording(const cRecording *Recording) { @@ -600,7 +600,7 @@ void cNopacityDisplayMenu::SetRecording(const cRecording *Recording) { } menuView->AdjustContentBackground(this->MenuCategory(), menuCategoryLast, videoWindowRect); detailView = new cNopacityDetailView(osd, Recording, menuView->GetPixmapScrollbar(), menuView->GetPixmapScrollbarBack()); - detailView->Render(); + deatilViewRenderDone = false; } void cNopacityDisplayMenu::SetText(const char *Text, bool FixedFont) { @@ -608,7 +608,7 @@ void cNopacityDisplayMenu::SetText(const char *Text, bool FixedFont) { return; menuView->AdjustContentBackground(this->MenuCategory(), menuCategoryLast, videoWindowRect); detailView = new cNopacityDetailView(osd, Text, menuView->GetPixmapScrollbar(), menuView->GetPixmapScrollbarBack()); - detailView->Render(); + deatilViewRenderDone = false; } void cNopacityDisplayMenu::SetAlpha(int Alpha, bool Force) { @@ -630,6 +630,10 @@ void cNopacityDisplayMenu::Flush(void) { if (Running()) return; + if (detailView && !deatilViewRenderDone) { + detailView->Render(); + deatilViewRenderDone = true; + } menuView->DrawDate(initial); if (MenuCategory() == mcMain) { if (config.GetValue("showDiscUsage")) diff --git a/displaymenu.h b/displaymenu.h index 7323778..efbe01e 100644 --- a/displaymenu.h +++ b/displaymenu.h @@ -18,6 +18,7 @@ private: int menuFadeOutTime = 0; bool fadeout; bool initial; + bool deatilViewRenderDone = false; bool diskUsageDrawn; int lastDiskUsageState; int lastTimersState; |