diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2020-03-05 14:46:52 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2020-03-06 14:01:47 +0100 |
commit | eb3a4113be6e0b64e048caa8bfedcb8bcc2e577d (patch) | |
tree | 84737a6704dcd7849114060115218a061d47fa3c /recmenuitem.c | |
parent | 7ec89bf12bab99b84363564075c0def9477d28fe (diff) | |
download | vdr-plugin-tvguide-eb3a4113be6e0b64e048caa8bfedcb8bcc2e577d.tar.gz vdr-plugin-tvguide-eb3a4113be6e0b64e048caa8bfedcb8bcc2e577d.tar.bz2 |
Fixed horizontal alignment in timeline
Diffstat (limited to 'recmenuitem.c')
-rw-r--r-- | recmenuitem.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/recmenuitem.c b/recmenuitem.c index db54c2c..f8c5ec8 100644 --- a/recmenuitem.c +++ b/recmenuitem.c @@ -2430,7 +2430,7 @@ void cRecMenuItemTimelineHeader::DrawTimeline(void) { pixmapTimeline->Fill(clrTransparent); width5Mins = (float)width * 5.0 / 24.0 / 60.0; int widthHour = 12 * width5Mins; - x0 = (width - 24*widthHour)/2; + x0 = (width - (24 * widthHour)) / 2; int barHeight = fontSmall->Height(); int y = height - barHeight; tColor col1 = theme.Color(clrTimeline1); @@ -2535,7 +2535,8 @@ void cRecMenuItemTimelineTimer::SetPixmaps(void) { } width5Mins = (float)width * 5.0 / 24.0 / 60.0; - x0 = (width - 24*12*width5Mins)/2; + int widthHour = 12 * width5Mins; + x0 = (width - (24 * widthHour)) / 2; } void cRecMenuItemTimelineTimer::Draw(void) { |