From 004ee45e01ca4188a77901c911e54fa73d48d548 Mon Sep 17 00:00:00 2001 From: Karl Melscher Date: Wed, 7 Mar 2018 15:36:23 +0100 Subject: DrawDate changes --- lcarsng.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lcarsng.c') diff --git a/lcarsng.c b/lcarsng.c index e95184e..5088c5e 100644 --- a/lcarsng.c +++ b/lcarsng.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.8 2014/06/12 08:48:15 kls Exp $ */ // "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures, @@ -491,7 +491,7 @@ cLCARSNGDisplayChannel::~cLCARSNGDisplayChannel() void cLCARSNGDisplayChannel::DrawDate(void) { cString s = DayDateTime(); - if (initial || strcmp(s, lastDate)) { + if (initial || !*lastDate || strcmp(s, lastDate)) { osd->DrawText(xc12, yc00, s, Theme.Color(clrDateFg), Theme.Color(clrDateBg), cFont::GetFont(fontOsd), xc13 - xc12, lineHeight, taRight | taBorder); lastDate = s; } @@ -1160,7 +1160,7 @@ void cLCARSNGDisplayMenu::DrawMenuFrame(void) void cLCARSNGDisplayMenu::DrawDate(void) { cString s = DayDateTime(); - if (initial || strcmp(s, lastDate)) { + if (initial || !*lastDate || strcmp(s, lastDate)) { const cFont *font = cFont::GetFont(fontOsd); tColor ColorFg = Theme.Color(clrDateFg); tColor ColorBg = Theme.Color(clrDateBg); -- cgit v1.2.3