diff options
author | Ken Moore <ken@pcbsd.org> | 2016-07-22 10:44:20 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2016-07-22 10:44:20 -0400 |
commit | ac15dfbc3ed00d0659f3b60e515a4e7a7d6ad8ab (patch) | |
tree | 15a0f46fa83dc4d68d4e58ca4ee25e720d7b27af /src-qt5/core | |
parent | [INTERFACE CHANGE] (diff) | |
download | lumina-ac15dfbc3ed00d0659f3b60e515a4e7a7d6ad8ab.tar.gz lumina-ac15dfbc3ed00d0659f3b60e515a4e7a7d6ad8ab.tar.bz2 lumina-ac15dfbc3ed00d0659f3b60e515a4e7a7d6ad8ab.zip |
Minor tweak to the FreeBSD OS backend for screen brightness.
Diffstat (limited to 'src-qt5/core')
-rw-r--r-- | src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp b/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp index 6441d8b7..c2c59272 100644 --- a/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp +++ b/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp @@ -112,7 +112,7 @@ void LOS::setScreenBrightness(int percent){ } } // - if hardware brightness does not work, use software brightness - if(!success){ + if(!success && LUtils::isValidBinary("xbrightness") ){ QString cmd = "xbrightness %1"; float pf = percent/100.0; //convert to a decimel cmd = cmd.arg( QString::number( int(65535*pf) ) ); |