summaryrefslogtreecommitdiff
path: root/lcarsng.c
diff options
context:
space:
mode:
authorkamel5 <kamel5 (at) gmx (dot) net>2018-03-19 14:36:17 +0100
committerkamel5 <kamel5 (at) gmx (dot) net>2018-03-19 14:36:17 +0100
commitc1b97a84e376526d98aae63c6eafb07e9258472c (patch)
tree4d7f666d2db1bfa20d81555373102193923e5e40 /lcarsng.c
parent613790da4e4ced1dea1513d8ef35c7bb4d193b19 (diff)
downloadskin-lcarsng-c1b97a84e376526d98aae63c6eafb07e9258472c.tar.gz
skin-lcarsng-c1b97a84e376526d98aae63c6eafb07e9258472c.tar.bz2
The LCARSNG skin's main menu now reacts to changes of the current channel's name
Diffstat (limited to 'lcarsng.c')
-rw-r--r--lcarsng.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lcarsng.c b/lcarsng.c
index 15dcad5..e615af9 100644
--- a/lcarsng.c
+++ b/lcarsng.c
@@ -838,6 +838,7 @@ private:
int lastLiveIndicatorY;
bool lastLiveIndicatorTransferring;
const cChannel *lastChannel;
+ cString lastChannelName;
const cEvent *lastEvent;
const cRecording *lastRecording;
cString lastHeader;
@@ -1714,13 +1715,14 @@ void cLCARSNGDisplayMenu::DrawLive(const cChannel *Channel)
}
if (!Channel)
return;
- if (initial || Channel != lastChannel) {
+ if (initial || Channel != lastChannel || strcmp(Channel->Name(), lastChannelName)) {
osd->DrawText(xa00, yt04, itoa(Channel->Number()), Theme.Color(clrChannelFrameFg), Theme.Color(clrChannelFrameBg), tallFont, xa02 - xa00, yt06 - yt04, taTop | taRight | taBorder);
osd->DrawText(xa03, yt04, Channel->Name(), Theme.Color(clrChannelName), Theme.Color(clrBackground), tallFont, xd07 - xa03, yt06 - yt04, taTop | taLeft);
int x = xa00 + (yc03 - yc02); // compensate for the arc
// osd->DrawText(x, yc00, cSource::ToString(Channel->Source()), Theme.Color(clrChannelFrameFg), Theme.Color(clrChannelFrameBg), cFont::GetFont(fontOsd), xa02 - x, yc03 - yc00, taTop | taRight | taBorder);
osd->DrawText(x, yc00, cSource::ToString(Channel->Source()), Theme.Color(clrChannelFrameFg), Theme.Color(clrChannelFrameBg), cFont::GetFont(fontOsd), xa02 - x, 2 * lineHeight, taTop | taRight | taBorder);
lastChannel = Channel;
+ lastChannelName = Channel->Name();
DrawSeen(0, 0);
}
// The current programme: