summaryrefslogtreecommitdiff
path: root/displaychannel.c
diff options
context:
space:
mode:
Diffstat (limited to 'displaychannel.c')
-rw-r--r--displaychannel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/displaychannel.c b/displaychannel.c
index ac9e179..a30e7fb 100644
--- a/displaychannel.c
+++ b/displaychannel.c
@@ -183,7 +183,7 @@ void cNopacityDisplayChannel::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;
channelView->SetAlpha(Alpha);
cPixmap::Unlock();