From ebdac2ddfcf810dac5305e74423b22a5e7a7848b Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 10 Mar 2014 12:09:52 +0100 Subject: [PATCH] Fixed drawing the live indicator in the LCARS skin in case there are no devices --- HISTORY | 1 + skinlcars.c | 4 ++-- 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);