fix(xbacklight): Allow larger property values

Not all backlight values are within 8 bit range
so do not truncate property values
This commit is contained in:
Michael Carlberg 2016-10-25 16:39:50 +02:00
parent ee92c30ff4
commit 83ae9f6435
2 changed files with 11 additions and 10 deletions
include/modules

View file

@ -111,7 +111,7 @@ namespace modules {
// Query for the new backlight value
auto& bl = m_output->backlight;
randr_util::get_backlight_value(m_connection, m_output, bl);
m_percentage = math_util::percentage<float>(bl.val, bl.min, bl.max);
m_percentage = math_util::percentage(bl.val, bl.min, bl.max);
// Update label tokens
if (m_label) {