summaryrefslogtreecommitdiff
path: root/skinsttng.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-02-27 14:54:57 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-02-27 14:54:57 +0100
commite3be67dbaabf69b654a4cb0024ae294a8f9ea7b3 (patch)
treec3408963cb8c4f4d4189e6d3d1348eb630d8f987 /skinsttng.c
parenta0de3a6a0853e3b21aa5fdcd20cc363acd9a8275 (diff)
downloadvdr-e3be67dbaabf69b654a4cb0024ae294a8f9ea7b3.tar.gz
vdr-e3be67dbaabf69b654a4cb0024ae294a8f9ea7b3.tar.bz2
Improved displaying the the current audio track in the ST:TNG channel display1.3.22
Diffstat (limited to 'skinsttng.c')
-rw-r--r--skinsttng.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/skinsttng.c b/skinsttng.c
index 94a4b66f..3760ad4d 100644
--- a/skinsttng.c
+++ b/skinsttng.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skinsttng.c 1.12 2005/01/08 15:37:55 kls Exp $
+ * $Id: skinsttng.c 1.13 2005/02/27 14:45:19 kls Exp $
*/
// Star Trek: The Next Generation® is a registered trademark of Paramount Pictures
@@ -268,9 +268,6 @@ void cSkinSTTNGDisplayChannel::SetEvents(const cEvent *Present, const cEvent *Fo
osd->DrawText(x3 + 2, y3 + (2 * i + 1) * lineHeight, e->ShortText(), Theme.Color(clrChannelEpgShortText), Theme.Color(clrBackground), cFont::GetFont(fontSml), x4 - x3 - 2);
}
}
- cDevice *Device = cDevice::PrimaryDevice();
- const tTrackId *Track = Device->GetTrack(Device->GetCurrentAudioTrack());
- osd->DrawText(x3 + 2, y6, Track ? Track->description : "", Theme.Color(clrChannelName), frameColor, cFont::GetFont(fontSml), x4 - x3 - 2);
}
void cSkinSTTNGDisplayChannel::SetMessage(eMessageType Type, const char *Text)
@@ -295,9 +292,13 @@ void cSkinSTTNGDisplayChannel::Flush(void)
{
if (withInfo) {
if (!message) {
- cString date = DayDateTime();
const cFont *font = cFont::GetFont(fontSml);
- osd->DrawText(x4 - font->Width(date) - 2, y7 - font->Height(date), date, Theme.Color(clrChannelDate), frameColor, font);
+ cString date = DayDateTime();
+ int w = font->Width(date);
+ osd->DrawText(x4 - w - 2, y7 - font->Height(date), date, Theme.Color(clrChannelDate), frameColor, font);
+ cDevice *Device = cDevice::PrimaryDevice();
+ const tTrackId *Track = Device->GetTrack(Device->GetCurrentAudioTrack());
+ osd->DrawText(x3 + 2, y6, Track ? Track->description : "", Theme.Color(clrChannelName), frameColor, font, x4 - x3 - w - 4);
}
int seen = 0;