diff options
| author | Martin Schirrmacher <vdr.skinflat@schirrmacher.eu> | 2013-08-01 16:36:16 +0200 |
|---|---|---|
| committer | Martin Schirrmacher <vdr.skinflat@schirrmacher.eu> | 2013-08-01 16:36:16 +0200 |
| commit | f44d488bb8458ec30f5575e04ce6c8ef470fe12d (patch) | |
| tree | 7eb1a943d3603fcba4e7c97964345f4900d366ef | |
| parent | a6393548cf463858003076758fc0f29180c53fd3 (diff) | |
| download | skin-flat-f44d488bb8458ec30f5575e04ce6c8ef470fe12d.tar.gz skin-flat-f44d488bb8458ec30f5575e04ce6c8ef470fe12d.tar.bz2 | |
display replay jump
| -rw-r--r-- | displayreplay.c | 13 | ||||
| -rw-r--r-- | displayreplay.h | 3 |
2 files changed, 13 insertions, 3 deletions
diff --git a/displayreplay.c b/displayreplay.c index 39ed9e6..976ac69 100644 --- a/displayreplay.c +++ b/displayreplay.c @@ -10,15 +10,19 @@ cFlatDisplayReplay::cFlatDisplayReplay(bool ModeOnly) { MessageCreate(); labelPixmap = osd->CreatePixmap(1, cRect(0, osdHeight - labelHeight, osdWidth, labelHeight)); - + ProgressBarCreate(0, osdHeight - labelHeight - ProgressBarHeight() - marginItem, osdWidth, Theme.Color(clrReplayProgressFg), Theme.Color(clrReplayProgressBarFg), Theme.Color(clrReplayProgressBg)); + labelJump = osd->CreatePixmap(1, cRect(0, osdHeight - labelHeight*2 - ProgressBarHeight() - marginItem*2, osdWidth, labelHeight)); + labelPixmap->Fill(Theme.Color(clrReplayBg)); + labelJump->Fill(clrTransparent); } cFlatDisplayReplay::~cFlatDisplayReplay() { osd->DestroyPixmap(labelPixmap); + osd->DestroyPixmap(labelJump); } void cFlatDisplayReplay::SetRecording(const cRecording *Recording) { @@ -112,10 +116,15 @@ void cFlatDisplayReplay::UpdateInfo(void) { } void cFlatDisplayReplay::SetJump(const char *Jump) { + if( !Jump ) + { + labelJump->Fill(clrTransparent); + return; + } int left = osdWidth - font->Width(Jump); left /= 2; - labelPixmap->DrawText(cPoint(left, 0), Jump, Theme.Color(clrReplayFont), Theme.Color(clrReplayBg), font, font->Width(Jump), fontHeight, taCenter); + labelJump->DrawText(cPoint(left, 0), Jump, Theme.Color(clrReplayFont), Theme.Color(clrReplayBg), font, font->Width(Jump), fontHeight, taCenter); } void cFlatDisplayReplay::SetMessage(eMessageType Type, const char *Text) { diff --git a/displayreplay.h b/displayreplay.h index d46a144..b24c46e 100644 --- a/displayreplay.h +++ b/displayreplay.h @@ -8,7 +8,8 @@ class cFlatDisplayReplay : public cFlatBaseRender, public cSkinDisplayReplay { int labelHeight; cPixmap *labelPixmap; - + cPixmap *labelJump; + void UpdateInfo(void); public: cFlatDisplayReplay(bool ModeOnly); |
