summaryrefslogtreecommitdiff
path: root/lcarsng.c
diff options
context:
space:
mode:
authorKarl Melscher <kamel5@gmx.net>2018-03-07 15:19:12 +0100
committerKarl Melscher <kamel5@gmx.net>2018-03-07 15:19:12 +0100
commit28c7cdc9797e2517e218ce6662a488664eec5117 (patch)
treeb620d41952204d81fd0fc8cf6952e91b077125e9 /lcarsng.c
parenta14627a4c06e2c78b29100f2b57ee3b148532946 (diff)
downloadskin-lcarsng-28c7cdc9797e2517e218ce6662a488664eec5117.tar.gz
skin-lcarsng-28c7cdc9797e2517e218ce6662a488664eec5117.tar.bz2
Icons in display replay
Diffstat (limited to 'lcarsng.c')
-rw-r--r--lcarsng.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/lcarsng.c b/lcarsng.c
index 2ea2f9e..03c4fed 100644
--- a/lcarsng.c
+++ b/lcarsng.c
@@ -1917,6 +1917,7 @@ private:
int lastTotalWidth;
cString lastDate;
tTrackId lastTrackId;
+ static cBitmap bmTeletext, bmRadio, bmAudio, bmDolbyDigital, bmEncrypted, bmRecording;
void DrawDate(void);
void DrawTrack(void);
public:
@@ -1933,6 +1934,13 @@ public:
virtual void Flush(void);
};
+cBitmap cLCARSNGDisplayReplay::bmTeletext(teletext_xpm);
+cBitmap cLCARSNGDisplayReplay::bmRadio(radio_xpm);
+cBitmap cLCARSNGDisplayReplay::bmAudio(audio_xpm);
+cBitmap cLCARSNGDisplayReplay::bmDolbyDigital(dolbydigital_xpm);
+cBitmap cLCARSNGDisplayReplay::bmEncrypted(encrypted_xpm);
+cBitmap cLCARSNGDisplayReplay::bmRecording(recording_xpm);
+
cLCARSNGDisplayReplay::cLCARSNGDisplayReplay(bool ModeOnly)
{
const cFont *font = cFont::GetFont(fontOsd);
@@ -2025,6 +2033,19 @@ void cLCARSNGDisplayReplay::DrawTrack(void)
void cLCARSNGDisplayReplay::SetRecording(const cRecording *Recording)
{
const cRecordingInfo *RecordingInfo = Recording->Info();
+ int x = xp13;
+ int xi = x - SymbolSpacing -
+ bmRecording.Width() - SymbolSpacing -
+ bmEncrypted.Width() - SymbolSpacing -
+ bmDolbyDigital.Width() - SymbolSpacing -
+ bmAudio.Width() - SymbolSpacing -
+ max(bmTeletext.Width(), bmRadio.Width()) - SymbolSpacing;
+
+ osd->DrawRectangle(xp12, yp08, xp13 - 1, yp09 - 1, frameColor);
+ bool rec = cRecordControls::Active();
+ x -= bmRecording.Width() + SymbolSpacing;
+ osd->DrawBitmap(x, yp08 + (yp09 - yp08 - bmRecording.Height()) / 2, bmRecording, Theme.Color(rec ? clrChannelSymbolRecFg : clrChannelSymbolOff), rec ? Theme.Color(clrChannelSymbolRecBg) : frameColor);
+
SetTitle(RecordingInfo->Title());
osd->DrawText(xp03, yp01 - lineHeight, RecordingInfo->ShortText(), Theme.Color(clrEventShortText), Theme.Color(clrBackground), cFont::GetFont(fontSml), xp13 - xp03);
osd->DrawText(xp00, yp00, ShortDateString(Recording->Start()), Theme.Color(clrReplayFrameFg), frameColor, cFont::GetFont(fontOsd), xp02 - xp00, 0, taTop | taRight | taBorder);