summaryrefslogtreecommitdiff
path: root/osditem.c
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.neutrinoepg@schirrmacher.eu>2017-08-27 15:20:21 +0200
committerMartin Schirrmacher <vdr.neutrinoepg@schirrmacher.eu>2017-08-27 15:20:21 +0200
commit714ef7eed5c6284634f65e19a4f5188193e10921 (patch)
treea1006fe346da18c878e2cbb5ef2b43307c80b8a4 /osditem.c
parentad017d88d94f888246f4a66d178273b9626ad107 (diff)
downloadvdr-plugin-neutrinoepg-714ef7eed5c6284634f65e19a4f5188193e10921.tar.gz
vdr-plugin-neutrinoepg-714ef7eed5c6284634f65e19a4f5188193e10921.tar.bz2
first try, support for vdr-2.3.8
Diffstat (limited to 'osditem.c')
-rw-r--r--osditem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/osditem.c b/osditem.c
index dda8008..a526315 100644
--- a/osditem.c
+++ b/osditem.c
@@ -123,7 +123,7 @@ void myOsdItem::Set()
char szProgress[20] = "";
char szProgressPart[25] = "";
int progress = (int)roundf( (float)(time(NULL) - event->StartTime()) / (float) (event->Duration()) * 8.0);
- progress = min(8, max(0, progress));
+ progress = std::min(8, std::max(0, progress));
for(int i = 0; i < 8; i++) {
if( i < progress )