summaryrefslogtreecommitdiff
path: root/displaychannelview.c
diff options
context:
space:
mode:
authorkamel5 <kamel5 (at) gmx (dot) net>2018-05-03 13:53:14 +0200
committerkamel5 <kamel5 (at) gmx (dot) net>2018-05-03 13:53:14 +0200
commitda85481fe0737ead0a0f6cc031d9d8ed23f89692 (patch)
tree9e9c474c18db19dac9f1aadc4f1ae492f967986a /displaychannelview.c
parente2db68198582fe7a2e85dd616f575fd321a3970f (diff)
downloadskin-nopacity-da85481fe0737ead0a0f6cc031d9d8ed23f89692.tar.gz
skin-nopacity-da85481fe0737ead0a0f6cc031d9d8ed23f89692.tar.bz2
Repair "invalid lock sequence report"
Diffstat (limited to 'displaychannelview.c')
-rw-r--r--displaychannelview.c19
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;