diff options
author | kamel5 <kamel5 (at) gmx (dot) net> | 2018-05-03 13:53:14 +0200 |
---|---|---|
committer | kamel5 <kamel5 (at) gmx (dot) net> | 2018-05-03 13:53:14 +0200 |
commit | da85481fe0737ead0a0f6cc031d9d8ed23f89692 (patch) | |
tree | 9e9c474c18db19dac9f1aadc4f1ae492f967986a /displaychannelview.c | |
parent | e2db68198582fe7a2e85dd616f575fd321a3970f (diff) | |
download | skin-nopacity-da85481fe0737ead0a0f6cc031d9d8ed23f89692.tar.gz skin-nopacity-da85481fe0737ead0a0f6cc031d9d8ed23f89692.tar.bz2 |
Repair "invalid lock sequence report"
Diffstat (limited to 'displaychannelview.c')
-rw-r--r-- | displaychannelview.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/displaychannelview.c b/displaychannelview.c index 9c6a671..ece2edf 100644 --- a/displaychannelview.c +++ b/displaychannelview.c @@ -374,6 +374,25 @@ void cNopacityDisplayChannelView::ClearProgressBar(void) { pixmapProgressBar->Fill(clrTransparent); } +void cNopacityDisplayChannelView::DrawEvents(const cEvent *Present, const cEvent *Following) { + if (Present) { + bool recCurrent = false; + eTimerMatch TimerMatch = tmNone; + const cTimer *Timer; + { + LOCK_TIMERS_READ; + Timer = Timers->GetMatch(Present, &TimerMatch); + } + if (Timer && Timer->Recording()) { + recCurrent = true; + } + DrawEPGInfo(Present, true, recCurrent); + } + if (Following) { + bool recFollowing = Following->HasTimer(); + DrawEPGInfo(Following, false, recFollowing); + } +} void cNopacityDisplayChannelView::DrawEPGInfo(const cEvent *e, bool present, bool recording) { int indent = 20; |