diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-09-19 11:13:17 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-09-19 11:13:17 +0200 |
commit | e898a28258ac97cc15f875fb8fa9b274266f6d01 (patch) | |
tree | be20d35fb11a2a3c4dfe8a23f0a4af2d4b585c31 /skinlcars.c | |
parent | e11908cae65545d320f3e0949a9e8c5b426c5b78 (diff) | |
download | vdr-e898a28258ac97cc15f875fb8fa9b274266f6d01.tar.gz vdr-e898a28258ac97cc15f875fb8fa9b274266f6d01.tar.bz2 |
Fixed a leftover frame counter in the LCARS skin's replay display after jumping to an editing mark and resuming replay
Diffstat (limited to 'skinlcars.c')
-rw-r--r-- | skinlcars.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/skinlcars.c b/skinlcars.c index 39d03747..b2dab50d 100644 --- a/skinlcars.c +++ b/skinlcars.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: skinlcars.c 2.14 2012/09/09 12:16:50 kls Exp $ + * $Id: skinlcars.c 2.15 2012/09/19 11:05:50 kls Exp $ */ // "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures, @@ -1661,6 +1661,7 @@ private: bool modeOnly; int lineHeight; tColor frameColor; + int lastCurrentWidth; cString lastDate; tTrackId lastTrackId; void DrawDate(void); @@ -1685,6 +1686,7 @@ cSkinLCARSDisplayReplay::cSkinLCARSDisplayReplay(bool ModeOnly) modeOnly = ModeOnly; lineHeight = font->Height(); frameColor = Theme.Color(clrReplayFrameBg); + lastCurrentWidth = 0; int d = 5 * lineHeight; xp00 = 0; xp01 = xp00 + d / 2; @@ -1801,8 +1803,9 @@ void cSkinLCARSDisplayReplay::SetProgress(int Current, int Total) void cSkinLCARSDisplayReplay::SetCurrent(const char *Current) { const cFont *font = cFont::GetFont(fontOsd); - int w = font->Width(Current) + 10; - osd->DrawText(xp03, yp03 - lineHeight, Current, Theme.Color(clrReplayPosition), Theme.Color(clrBackground), font, w, 0, taLeft); + int w = font->Width(Current); + osd->DrawText(xp03, yp03 - lineHeight, Current, Theme.Color(clrReplayPosition), Theme.Color(clrBackground), font, lastCurrentWidth > w ? lastCurrentWidth : w, 0, taLeft); + lastCurrentWidth = w; } void cSkinLCARSDisplayReplay::SetTotal(const char *Total) |