diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2022-01-10 11:26:05 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2022-01-12 13:44:13 +0100 |
commit | 13d96ff79051c84d9c85ab414db7f97e5c772cec (patch) | |
tree | 040fdbbe7e08d5110ba1c5b9681ca8cb0ac60090 /displaymenu.c | |
parent | b0c717a87df44fa697bfbe8ef8a5f0082763e246 (diff) | |
download | skin-nopacity-13d96ff79051c84d9c85ab414db7f97e5c772cec.tar.gz skin-nopacity-13d96ff79051c84d9c85ab414db7f97e5c772cec.tar.bz2 |
Prevents "invalid lock sequence" in the recording info menu when Skinnopacitys SetRecording is called
Diffstat (limited to 'displaymenu.c')
-rw-r--r-- | displaymenu.c | 10 |
1 files changed, 7 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")) |