summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2014-03-10 12:09:52 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2014-03-10 12:09:52 +0100
commitebdac2ddfcf810dac5305e74423b22a5e7a7848b (patch)
tree554d6ccf8bf51e550dae62df655ba6d44a6d6dee
parentcaf708b6184e31de7e88578f764322ec976ef22d (diff)
downloadvdr-ebdac2ddfcf810dac5305e74423b22a5e7a7848b.tar.gz
vdr-ebdac2ddfcf810dac5305e74423b22a5e7a7848b.tar.bz2
Fixed drawing the live indicator in the LCARS skin in case there are no devices
-rw-r--r--HISTORY1
-rw-r--r--skinlcars.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index e308dd47..5f498241 100644
--- a/HISTORY
+++ b/HISTORY
@@ -8223,3 +8223,4 @@ Video Disk Recorder Revision History
will initially be positioned to the last replayed recording again when the menu
is opened.
- Updated the Finnish OSD texts (thanks to Antti Hartikainen).
+- Fixed drawing the live indicator in the LCARS skin in case there are no devices.
diff --git a/skinlcars.c b/skinlcars.c
index d652251e..e9d1e28f 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 3.6 2013/11/16 13:20:19 kls Exp $
+ * $Id: skinlcars.c 3.7 2014/03/10 12:04:06 kls Exp $
*/
// "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures,
@@ -1361,7 +1361,7 @@ void cSkinLCARSDisplayMenu::DrawLiveIndicator(void)
if (initial || y != lastLiveIndicatorY || Transferring != lastLiveIndicatorTransferring) {
if (lastLiveIndicatorY >= 0)
osd->DrawRectangle(xs12, lastLiveIndicatorY, xs13 - 1, lastLiveIndicatorY + lineHeight - 1, Theme.Color(clrBackground));
- if (y >= 0) {
+ if (y > 0) {
tColor ColorBg = Theme.Color(clrChannelFrameBg);
osd->DrawRectangle(xs12, y, xs12 + lineHeight / 2 - 1, y + lineHeight - 1, ColorBg);
osd->DrawEllipse (xs12 + lineHeight / 2, y, xs13 - 1, y + lineHeight - 1, ColorBg, 5);