diff options
author | Karl Melscher <kamel5@gmx.net> | 2018-03-07 15:39:54 +0100 |
---|---|---|
committer | Karl Melscher <kamel5@gmx.net> | 2018-03-07 15:39:54 +0100 |
commit | d77073256ae431c639f447a3d1ce166a62180bb9 (patch) | |
tree | 8d27d115e49befdac840c8d89503f23b27265335 /lcarsng.c | |
parent | 969a49771925f064488c51189c3b5f78f7aa404f (diff) | |
download | skin-lcarsng-d77073256ae431c639f447a3d1ce166a62180bb9.tar.gz skin-lcarsng-d77073256ae431c639f447a3d1ce166a62180bb9.tar.bz2 |
More Blinking Rec changes
Diffstat (limited to 'lcarsng.c')
-rw-r--r-- | lcarsng.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -551,19 +551,20 @@ void cLCARSNGDisplayChannel::DrawSignal(void) void cLCARSNGDisplayChannel::DrawBlinkingRec(void) { bool rec = cRecordControls::Active(); - bool On; + bool On = false; int x = xc13; + int bt = 800; + x -= bmRecording.Width() + SymbolSpacing; if (rec) { - if (cTimeMs::Now() - Blink > 1000) { + if (cTimeMs::Now() - Blink > bt) { On = false; - if (cTimeMs::Now() - Blink > 2000) + if ((cTimeMs::Now() - Blink) / 2 > bt) Blink = cTimeMs::Now(); } else On = true; - x -= bmRecording.Width() + SymbolSpacing; - osd->DrawBitmap(x, yc11 + (yc12 - yc11 - bmRecording.Height()) / 2, bmRecording, Theme.Color(rec ? On ? clrChannelSymbolRecFg : clrChannelSymbolOff : clrChannelSymbolOff), rec ? On ? Theme.Color(clrChannelSymbolRecBg) : frameColor : frameColor); } + osd->DrawBitmap(x, yc11 + (yc12 - yc11 - bmRecording.Height()) / 2, bmRecording, Theme.Color(rec ? On ? clrChannelSymbolRecFg : clrChannelSymbolOff : clrChannelSymbolOff), rec ? On ? Theme.Color(clrChannelSymbolRecBg) : frameColor : frameColor); } void cLCARSNGDisplayChannel::SetChannel(const cChannel *Channel, int Number) @@ -579,7 +580,7 @@ void cLCARSNGDisplayChannel::SetChannel(const cChannel *Channel, int Number) if (Channel && !Channel->GroupSep()) { bool rec = cRecordControls::Active(); x -= bmRecording.Width() + SymbolSpacing; - osd->DrawBitmap(x, yc11 + (yc12 - yc11 - bmRecording.Height()) / 2, bmRecording, Theme.Color(rec ? clrChannelSymbolRecFg : clrChannelSymbolOff), rec ? Theme.Color(clrChannelSymbolRecBg) : frameColor); +// osd->DrawBitmap(x, yc11 + (yc12 - yc11 - bmRecording.Height()) / 2, bmRecording, Theme.Color(rec ? clrChannelSymbolRecFg : clrChannelSymbolOff), rec ? Theme.Color(clrChannelSymbolRecBg) : frameColor); x -= bmEncrypted.Width() + SymbolSpacing; osd->DrawBitmap(x, yc11 + (yc12 - yc11 - bmEncrypted.Height()) / 2, bmEncrypted, Theme.Color(Channel->Ca() ? clrChannelSymbolOn : clrChannelSymbolOff), frameColor); x -= bmDolbyDigital.Width() + SymbolSpacing; |