summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-12-22 11:15:42 +0100
committerlouis <louis.braun@gmx.de>2013-12-22 11:15:42 +0100
commit7b63d53011ad92bfb8ea153b1691ab5ff10a45f8 (patch)
tree9b3e2b958d32f2f2773b449dbe3200e86506411c
parentcd4ca89f8b5dec057f3e98a108e6d9a2f5e279b3 (diff)
downloadvdr-plugin-tvguide-7b63d53011ad92bfb8ea153b1691ab5ff10a45f8.tar.gz
vdr-plugin-tvguide-7b63d53011ad92bfb8ea153b1691ab5ff10a45f8.tar.bz2
fixed wrong font for clock in horizontal view
-rw-r--r--HISTORY1
-rw-r--r--timeline.c7
2 files changed, 5 insertions, 3 deletions
diff --git a/HISTORY b/HISTORY
index 3b54c2b..38f823c 100644
--- a/HISTORY
+++ b/HISTORY
@@ -88,3 +88,4 @@ Version 1.1.0
- Added slovakian translation
- fixed channel switching with blue key if detailed epg view is opened and
if "close tvguide on channel switch" is configured
+- fixed wrong font for clock in horizontal view
diff --git a/timeline.c b/timeline.c
index a6d64cc..0cc41e2 100644
--- a/timeline.c
+++ b/timeline.c
@@ -247,8 +247,9 @@ void cTimeLine::setTimeline() {
void cTimeLine::drawClock() {
clock->Fill(clrTransparent);
cString currentTime = myTime->GetCurrentTime();
- int textHeight = fontManager.FontTimeLineTime->Height();
- int clockTextWidth = fontManager.FontTimeLineTime->Width(*currentTime);
+ const cFont *font = (tvguideConfig.displayMode == eVertical)?fontManager.FontTimeLineTime:fontManager.FontTimeLineTimeHorizontal;
+ int textHeight = font->Height();
+ int clockTextWidth = font->Width(*currentTime);
tColor colorFontBack = (tvguideConfig.style == eStyleFlat)?theme.Color(clrHeader):clrTransparent;
if (tvguideConfig.style == eStyleGraphical) {
clock->drawBackgroundGraphical(bgClock);
@@ -257,5 +258,5 @@ void cTimeLine::drawClock() {
clock->drawBackground();
clock->drawBorder();
}
- clock->DrawText(cPoint((geoManager.clockWidth-clockTextWidth)/2, (geoManager.clockHeight-textHeight)/2), *currentTime, theme.Color(clrFont), colorFontBack, fontManager.FontTimeLineTime);
+ clock->DrawText(cPoint((geoManager.clockWidth-clockTextWidth)/2, (geoManager.clockHeight-textHeight)/2), *currentTime, theme.Color(clrFont), colorFontBack, font);
} \ No newline at end of file