summaryrefslogtreecommitdiff
path: root/skinlcars.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-11-08 10:37:57 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2017-11-08 10:37:57 +0100
commit33bbff2aa5a7d84c2d3132f48f18abefcee68dee (patch)
treee0e35db18736780c9c2c16700fff4741ce1134d2 /skinlcars.c
parent5c94900026437ed108f29eb54cfe31f2ce0deba6 (diff)
downloadvdr-33bbff2aa5a7d84c2d3132f48f18abefcee68dee.tar.gz
vdr-33bbff2aa5a7d84c2d3132f48f18abefcee68dee.tar.bz2
The LCARS skin's main menu now reacts to changes of the current channel's name
Diffstat (limited to 'skinlcars.c')
-rw-r--r--skinlcars.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/skinlcars.c b/skinlcars.c
index a7c28f10..aedca5dc 100644
--- a/skinlcars.c
+++ b/skinlcars.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skinlcars.c 4.5 2017/06/23 15:52:03 kls Exp $
+ * $Id: skinlcars.c 4.6 2017/11/08 10:10:30 kls Exp $
*/
// "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures,
@@ -715,6 +715,7 @@ private:
int lastLiveIndicatorY;
bool lastLiveIndicatorTransferring;
const cChannel *lastChannel;
+ cString lastChannelName;
const cEvent *lastEvent;
const cRecording *lastRecording;
cString lastHeader;
@@ -1426,12 +1427,13 @@ void cSkinLCARSDisplayMenu::DrawLive(const cChannel *Channel)
}
if (!Channel)
return;
- if (initial || Channel != lastChannel) {
+ if (initial || Channel != lastChannel || strcmp(Channel->Name(), lastChannelName)) {
osd->DrawText(xa00, yt00, itoa(Channel->Number()), Theme.Color(clrChannelFrameFg), Theme.Color(clrChannelFrameBg), tallFont, xa02 - xa00, yt02 - yt00, taTop | taRight | taBorder);
osd->DrawText(xa03, yt00, Channel->Name(), Theme.Color(clrChannelName), Theme.Color(clrBackground), tallFont, xd00 - xa03, yd01 - yd00, 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);
lastChannel = Channel;
+ lastChannelName = Channel->Name();
DrawSeen(0, 0);
}
// The current programme: