diff options
author | kamel5 <kamel5 (at) gmx (dot) net> | 2018-05-03 13:33:40 +0200 |
---|---|---|
committer | kamel5 <kamel5 (at) gmx (dot) net> | 2018-05-03 13:33:40 +0200 |
commit | 0ae15aebbf31c52fd676e1d68ee45402b857750d (patch) | |
tree | 8b08cb4b3a2324f7e0e59b1ebea7ad5ecc21afda /displaychannelview.c | |
parent | f593ad572046998285e01ee0f5f767f88e25a94a (diff) | |
download | skin-nopacity-0ae15aebbf31c52fd676e1d68ee45402b857750d.tar.gz skin-nopacity-0ae15aebbf31c52fd676e1d68ee45402b857750d.tar.bz2 |
Use std::max and std::min
Diffstat (limited to 'displaychannelview.c')
-rw-r--r-- | displaychannelview.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/displaychannelview.c b/displaychannelview.c index c4e8ddc..a910491 100644 --- a/displaychannelview.c +++ b/displaychannelview.c @@ -627,7 +627,7 @@ void cNopacityDisplayChannelView::DrawSignalMeter(void) { signalHeight = imgSignal->Height(); int signalMeterY = geoManager->channelFooterY + (geoManager->channelFooterHeight - 2*signalHeight - 5)/2; - int labelWidth = max(fontInfoline->Width(*signalStrength), + int labelWidth = std::max(fontInfoline->Width(*signalStrength), fontInfoline->Width(*signalQuality)) + 2; signalX = geoManager->channelFooterHeight / 2 + labelWidth; pixmapSignalStrength = osd->CreatePixmap(3, |