diff options
author | Ken Moore <ken@pcbsd.org> | 2016-07-22 12:15:35 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2016-07-22 12:15:35 -0400 |
commit | 6fdcedc21a3ecc34862e02c405ac5d28dc2f1808 (patch) | |
tree | 692681a990a0df60b43a16f8ffdd0b3a33fac74f /src-qt5 | |
parent | Ensure that when re-loading previous screen settings it also puts the monitor... (diff) | |
download | lumina-6fdcedc21a3ecc34862e02c405ac5d28dc2f1808.tar.gz lumina-6fdcedc21a3ecc34862e02c405ac5d28dc2f1808.tar.bz2 lumina-6fdcedc21a3ecc34862e02c405ac5d28dc2f1808.zip |
Fix up the screen brightness detection on FreeBSD (found a logic reversal).
Diffstat (limited to 'src-qt5')
-rw-r--r-- | src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp b/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp index c2c59272..d3aec0d9 100644 --- a/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp +++ b/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp @@ -69,7 +69,7 @@ int LOS::ScreenBrightness(){ if(goodsys<0){ //Make sure we are not running in VirtualBox (does not work in a VM) QStringList info = LUtils::getCmdOutput("pciconf -lv"); - if( !info.filter("VirtualBox", Qt::CaseInsensitive).isEmpty() ){ goodsys = 1; } + if( info.filter("VirtualBox", Qt::CaseInsensitive).isEmpty() ){ goodsys = 1; } else{ goodsys = 0; } //not a good system } if(goodsys<=0){ return -1; } //not a good system @@ -85,7 +85,6 @@ int LOS::ScreenBrightness(){ } //If it gets to this point, then we have a valid (but new) installation if(screenbrightness<0){ screenbrightness = 100; } //default value for systems - return screenbrightness; } |