Use properly rounded brightness values in OSD

Review Request #121191 - Created Nov. 20, 2014 and updated

Information
Gabriele Mazzotta
kde-workspace
Reviewers
kde-workspace

If the max brightness is not a multiple of the step used to vary the brightness level, the OSD might not properly display the set value since it's not properly rounded. For instance, 89% might be displayed instead of 90% in the OSD when a 10% decrease in respect to the max brightness is done.

I actually tested this on v4.11.13, so I apologize in advance in case something is wrong.

Gabriele Mazzotta
Gabriele Mazzotta
Kai Uwe Broulik
Loading...