summaryrefslogtreecommitdiff
path: root/displayreplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'displayreplay.c')
-rw-r--r--displayreplay.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/displayreplay.c b/displayreplay.c
index cbb58a10..d4a1e58a 100644
--- a/displayreplay.c
+++ b/displayreplay.c
@@ -149,10 +149,9 @@ void cFlatDisplayReplay::UpdateInfo(void) {
cString cutted;
bool iscutted = false;
- int fontAscender = GetFontAscender(Setup.FontOsd, fontHeight);
- int fontSecsAscender = GetFontAscender(Setup.FontOsd, fontSecs->Height());
+ int fontAscender = GetFontAscender(Setup.FontOsd, Setup.FontOsdSize);
+ int fontSecsAscender = GetFontAscender(Setup.FontOsd, Setup.FontOsdSize * Config.TimeSecsScale * 100.0);
int topSecs = fontAscender - fontSecsAscender;
- dsyslog("fontHeight: %d fontAscender: %d fontSecsHeight: %d fontSecsAscender: %d topSecs: %d", fontHeight, fontAscender, fontSecs->Height(), fontSecsAscender, topSecs);
if( Config.TimeSecsScale == 1.0 )
labelPixmap->DrawText(cPoint(marginItem, 0), current, Theme.Color(clrReplayFont), Theme.Color(clrReplayBg), font, font->Width(current), fontHeight);