From 180fe711f5193741155602dc146fb59ec95d8500 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Sat, 9 Jan 2021 14:18:08 +0100 Subject: Fix for gcc11 --- displayvolume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'displayvolume.c') 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); -- cgit v1.2.3