diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-01-09 14:18:08 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-01-09 14:18:33 +0100 |
commit | 180fe711f5193741155602dc146fb59ec95d8500 (patch) | |
tree | 3663d5fc4cfe28973097f9eac7dd563df8b79c57 /displayreplay.c | |
parent | 86fe497b629b79bc07ddc726341a42c9c9e02b00 (diff) | |
download | skin-nopacity-180fe711f5193741155602dc146fb59ec95d8500.tar.gz skin-nopacity-180fe711f5193741155602dc146fb59ec95d8500.tar.bz2 |
Fix for gcc11
Diffstat (limited to 'displayreplay.c')
-rw-r--r-- | displayreplay.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/displayreplay.c b/displayreplay.c index 6e42cea..4f7f268 100644 --- a/displayreplay.c +++ b/displayreplay.c @@ -317,9 +317,9 @@ void cNopacityDisplayReplay::SetRecording(const cRecording *Recording) { pixmapInfo2->Fill(clrTransparent); pixmapInfo2->DrawText(cPoint(geoManager->replayHeaderHeight/2, - max((geoManager->replayInfo2Height - - fontManager->replayText->Height())/2 - 10, - 0)), + std::max((geoManager->replayInfo2Height + - fontManager->replayText->Height()) / 2 - 10, + 0)), *info2, Theme.Color(clrReplayDescription), clrTransparent, @@ -496,7 +496,7 @@ void cNopacityDisplayReplay::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; if (!modeOnly) { int alphaBack = (100 - config.GetValue("channelBackgroundTransparency"))*Alpha/100; |