Fixed rounding.

This commit is contained in:
Marian Flor 2019-02-17 21:13:10 +01:00
parent 8878cb0b4c
commit c1a27d8a8a

View file

@ -273,7 +273,7 @@ int VolumeControl::getVolume() const
rawVolume -= minVolume;
if (rawVolume > 0)
{
volume = (rawVolume * 100) / (maxVolume - minVolume);
volume = (rawVolume * 100.0) / (maxVolume - minVolume) + 0.5;
}
//else volume = 0;
}