lcdd: blink the date if recording during standby

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1513 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 32a4ad2c0d
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-06-05 (Sun, 05 Jun 2011)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2011-06-05 10:54:19 +00:00
parent 739dcaebe1
commit bcd1a0b0b5
3 changed files with 13 additions and 11 deletions

View File

@@ -581,8 +581,7 @@ void CLCD::showTime()
if (mode == MODE_STANDBY) if (mode == MODE_STANDBY)
{ {
display.draw_fill_rect(-1, -1, LCD_COLS, 64, CLCDDisplay::PIXEL_OFF); // clear lcd display.draw_fill_rect(-1, -1, LCD_COLS, 64, CLCDDisplay::PIXEL_OFF); // clear lcd
ShowNewClock(&display, t->tm_hour, t->tm_min, t->tm_sec, t->tm_wday, t->tm_mday, t->tm_mon, CNeutrinoApp::getInstance()->recordingstatus);
ShowNewClock(&display, t->tm_hour, t->tm_min, t->tm_sec, t->tm_wday, t->tm_mday, t->tm_mon);
} }
else else
{ {

View File

@@ -204,23 +204,26 @@ void RenderMonth(CLCDDisplay* const display, int month)
} }
} }
void ShowNewClock(CLCDDisplay* display, int hour, int minute, int second, int day, int date, int month) void ShowNewClock(CLCDDisplay* display, int hour, int minute, int second, int day, int date, int month, bool rec)
{ {
RenderTimeDigit(display, hour/10, 5); RenderTimeDigit(display, hour/10, 5);
RenderTimeDigit(display, hour%10, 32); RenderTimeDigit(display, hour%10, 32);
RenderTimeDigit(display, minute/10, 64); RenderTimeDigit(display, minute/10, 64);
RenderTimeDigit(display, minute%10, 91); RenderTimeDigit(display, minute%10, 91);
RenderDay(display, day); /* blink the date if recording */
if (!rec || !(second & 1))
{
RenderDay(display, day);
RenderDateDigit(display, date/10, 43); RenderDateDigit(display, date/10, 43);
RenderDateDigit(display, date%10, 60); RenderDateDigit(display, date%10, 60);
RenderMonth(display, month); RenderMonth(display, month);
RenderSign(display, 1, 31, 57);
RenderSign(display, 2, 78, 56);
RenderSign(display, 1, 31, 57);
RenderSign(display, 2, 78, 56);
}
if (second % 2 == 0) if (second % 2 == 0)
{ {
RenderSign(display, 0, 58, 15); RenderSign(display, 0, 58, 15);

View File

@@ -27,4 +27,4 @@
#include <lcddisplay/lcddisplay.h> #include <lcddisplay/lcddisplay.h>
void InitNewClock(); void InitNewClock();
void ShowNewClock(CLCDDisplay* display, int hour, int minute, int second, int day, int date, int month); void ShowNewClock(CLCDDisplay* display, int hour, int minute, int second, int day, int date, int month, bool record = false);