summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2020-01-19 11:39:20 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2020-01-20 14:45:27 +0100
commita2939a8807b7706ddb13a3d3e387635e1af4d518 (patch)
treee750f283e97a357880a40c6b1c693fdd8d0744a2
parentc4c3aa792a643ffbd0112805238e3bdf6353795f (diff)
downloadskin-lcarsng-a2939a8807b7706ddb13a3d3e387635e1af4d518.tar.gz
skin-lcarsng-a2939a8807b7706ddb13a3d3e387635e1af4d518.tar.bz2
Clear background for events
-rw-r--r--displaychannel.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/displaychannel.c b/displaychannel.c
index 112750f..84b38b2 100644
--- a/displaychannel.c
+++ b/displaychannel.c
@@ -409,13 +409,18 @@ void cLCARSNGDisplayChannel::SetEvents(const cEvent *Present, const cEvent *Foll
following = Following;
for (int i = 0; i < 2; i++) {
const cEvent *e = !i ? Present : Following;
- int x = xc10n; //xc03;
+ int x = xc10n;
int y = !i ? yc03 : yc05;
if (e) {
+// draw Time:
osd->DrawText(xc10 + Margin, y + Margin, e->GetTimeString(), Theme.Color(clrChannelFrameFg), frameColorBg, cFont::GetFont(fontOsd), xc10m - xc10 - 1 - 2 * Margin, lineHeight, taRight | taBorder);
+// draw Title:
int w = cFont::GetFont(fontOsd)->Width(e->Title());
+ osd->DrawRectangle(x, y + Margin, xc13, y + Margin + lineHeight, Theme.Color(clrBackground));
osd->DrawText(x, y + Margin, e->Title(), Theme.Color(clrEventTitle), frameColorBg, cFont::GetFont(fontOsd), min(w, xc13 - x), lineHeight);
- w = cFont::GetFont(fontSml)->Width(e->ShortText());
+// draw ShortText:
+ w = cFont::GetFont(fontSml)->Width(e->ShortText());
+ osd->DrawRectangle(x, y + lineHeight + 2 * Margin + Gap / 2, xc13, y + 2 * lineHeight + Gap / 2, Theme.Color(clrBackground));
osd->DrawText(x, y + lineHeight + 2 * Margin + Gap / 2, e->ShortText(), Theme.Color(clrEventShortText), frameColorBg, cFont::GetFont(fontSml), min(w, xc13 - x), lineHeight - 2 * Margin);
}
else {