summaryrefslogtreecommitdiff
path: root/displaymenu.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-07-09 18:55:39 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-07-30 13:19:15 +0200
commit39b723f04aaec82abc11eedb2f8b8fd970bc6fd7 (patch)
tree9750c5702d6e8b28e05cd4c8f95cdfbdfce2d06b /displaymenu.c
parentfdcad235c08d27bd114c660539b47f4b50ffcfc2 (diff)
downloadskin-nopacity-39b723f04aaec82abc11eedb2f8b8fd970bc6fd7.tar.gz
skin-nopacity-39b723f04aaec82abc11eedb2f8b8fd970bc6fd7.tar.bz2
Eliminate cThread in cNopacityDetailView
Diffstat (limited to 'displaymenu.c')
-rw-r--r--displaymenu.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/displaymenu.c b/displaymenu.c
index 00156c5..fe362bf 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -587,7 +587,7 @@ void cNopacityDisplayMenu::SetEvent(const cEvent *Event) {
menuView->AdjustContentBackground(this->MenuCategory(), menuCategoryLast, videoWindowRect);
detailView = new cNopacityDetailView(dvEvent, osd, menuView->GetPixmapScrollbar(), menuView->GetPixmapScrollbarBack());
detailView->SetEvent(Event);
- detailView->Start();
+ detailView->Render();
}
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(dvRecording, osd, menuView->GetPixmapScrollbar(), menuView->GetPixmapScrollbarBack());
detailView->SetRecording(Recording);
- detailView->Start();
+ detailView->Render();
}
void cNopacityDisplayMenu::SetText(const char *Text, bool FixedFont) {
@@ -609,7 +609,7 @@ void cNopacityDisplayMenu::SetText(const char *Text, bool FixedFont) {
menuView->AdjustContentBackground(this->MenuCategory(), menuCategoryLast, videoWindowRect);
detailView = new cNopacityDetailView(dvText, osd, menuView->GetPixmapScrollbar(), menuView->GetPixmapScrollbarBack());
detailView->SetText(Text);
- detailView->Start();
+ detailView->Render();
}
void cNopacityDisplayMenu::SetAlpha(int Alpha, bool Force) {
@@ -642,9 +642,6 @@ void cNopacityDisplayMenu::Flush(void) {
if (config.GetValue("showTimers"))
DrawTimers(timersChanged, numConflicts);
}
- if (detailView)
- while (detailView->IsRunning())
- cCondWait::SleepMs(10);
if (initial) {
if ((MenuCategory() != mcPluginSetup) && (MenuCategory() != mcSetupPlugins) && menuFadeTime) {
SetAlpha(0, true);