[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/powerdevil/daemon/backends/upower
From: Lukáš Tinkl <lukas () kde ! org>
Date: 2010-12-20 17:35:14
Message-ID: 20101220173514.98838AC8AA () svn ! kde ! org
[Download RAW message or body]
SVN commit 1208105 by lukas:
better rounding this way
morale: it actually helps testing the code in the device you're
writing it for :D
M +1 -1 backlighthelper.cpp
--- trunk/KDE/kdebase/workspace/powerdevil/daemon/backends/upower/backlighthelper.cpp #1208104:1208105
@@ -108,7 +108,7 @@
return reply;
}
- int actual_brightness = qRound(args["brightness"].toFloat()) * maxBrightness() / 100;
+ int actual_brightness = qRound(args["brightness"].toFloat() * maxBrightness() / 100);
qDebug() << "setting brightness:" << actual_brightness;
int result = file.write(QByteArray::number(actual_brightness));
file.close();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic