diff options
author | Moritz Bruder <[email protected]> | 2017-04-28 09:50:52 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-06-16 14:40:45 +0200 |
commit | 7df3511c658fed53fad6d8601035cea427f7fbcc (patch) | |
tree | a1868f1f947e80e25a7b4577c50055281fdf2354 /mate-volume-control/applet-main.c | |
parent | e6d3887e68181afc634dde19601f4d2f47436b23 (diff) | |
download | mate-media-7df3511c658fed53fad6d8601035cea427f7fbcc.tar.bz2 mate-media-7df3511c658fed53fad6d8601035cea427f7fbcc.tar.xz |
applet: fix minor rounding mistakes
The chosen volume step increment isn't necessarily an integer. The
volume however is stored as integer. Whenever the volume is synced back
from the mixer decimal digits may be cut off behind the dot. This
commit tries to counteract the effect by rounding to hundreths of the
maximum volume when syncing back from the mixer.
As the volume is shown in percent the new behavior should be more
reasonable to the user. There are no more irregular jumps and there
is no additional 99% step.
Diffstat (limited to 'mate-volume-control/applet-main.c')
0 files changed, 0 insertions, 0 deletions