summaryrefslogtreecommitdiff
path: root/lcarsng.c
diff options
context:
space:
mode:
authorKarl Melscher <kamel5@gmx.net>2018-03-07 15:36:23 +0100
committerKarl Melscher <kamel5@gmx.net>2018-03-07 15:36:23 +0100
commit004ee45e01ca4188a77901c911e54fa73d48d548 (patch)
tree0ac9a902401207ea18da4fa245911e2fe1a764b8 /lcarsng.c
parent73cae09b9a5727f4d76f2fe03624dee3cf1ee5cd (diff)
downloadskin-lcarsng-004ee45e01ca4188a77901c911e54fa73d48d548.tar.gz
skin-lcarsng-004ee45e01ca4188a77901c911e54fa73d48d548.tar.bz2
DrawDate changes
Diffstat (limited to 'lcarsng.c')
-rw-r--r--lcarsng.c6
1 files changed, 3 insertions, 3 deletions
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);