diff options
author | Martin Schirrmacher <vdr.neutrinoepg@schirrmacher.eu> | 2017-08-27 15:20:21 +0200 |
---|---|---|
committer | Martin Schirrmacher <vdr.neutrinoepg@schirrmacher.eu> | 2017-08-27 15:20:21 +0200 |
commit | 714ef7eed5c6284634f65e19a4f5188193e10921 (patch) | |
tree | a1006fe346da18c878e2cbb5ef2b43307c80b8a4 /osditem.c | |
parent | ad017d88d94f888246f4a66d178273b9626ad107 (diff) | |
download | vdr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ) |