summaryrefslogtreecommitdiff
path: root/displayvolume.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-01-09 14:18:08 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-01-09 14:18:33 +0100
commit180fe711f5193741155602dc146fb59ec95d8500 (patch)
tree3663d5fc4cfe28973097f9eac7dd563df8b79c57 /displayvolume.c
parent86fe497b629b79bc07ddc726341a42c9c9e02b00 (diff)
downloadskin-nopacity-180fe711f5193741155602dc146fb59ec95d8500.tar.gz
skin-nopacity-180fe711f5193741155602dc146fb59ec95d8500.tar.bz2
Fix for gcc11
Diffstat (limited to 'displayvolume.c')
-rw-r--r--displayvolume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/displayvolume.c b/displayvolume.c
index 1661e02..7c1181a 100644
--- a/displayvolume.c
+++ b/displayvolume.c
@@ -142,7 +142,7 @@ void cNopacityDisplayVolume::Action(void) {
while (Running()) {
uint64_t Now = cTimeMs::Now();
cPixmap::Lock();
- double t = min(double(Now - Start) / FadeTime, 1.0);
+ double t = std::min(double(Now - Start) / FadeTime, 1.0);
int Alpha = t * ALPHA_OPAQUE;
pixmapBackground->SetAlpha(Alpha);
pixmapProgressBar->SetAlpha(Alpha);