aboutsummaryrefslogtreecommitdiff
path: root/libLumina
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-07-07 22:45:58 -0400
committerKen Moore <moorekou@gmail.com>2015-07-07 22:45:58 -0400
commit4c312659ea0e4bac5d855f0b6d99b673d7ba95f2 (patch)
treef4c883e3cd21fa693fd70c815452488b61b7fdd9 /libLumina
parentMerge pull request #132 from rezso/patch-1 (diff)
downloadlumina-4c312659ea0e4bac5d855f0b6d99b673d7ba95f2.tar.gz
lumina-4c312659ea0e4bac5d855f0b6d99b673d7ba95f2.tar.bz2
lumina-4c312659ea0e4bac5d855f0b6d99b673d7ba95f2.zip
Fix the initial brightness detection for FreeBSD on new users/systems.
Diffstat (limited to 'libLumina')
-rw-r--r--libLumina/LuminaOS-FreeBSD.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libLumina/LuminaOS-FreeBSD.cpp b/libLumina/LuminaOS-FreeBSD.cpp
index fe001ab2..b5d3ed80 100644
--- a/libLumina/LuminaOS-FreeBSD.cpp
+++ b/libLumina/LuminaOS-FreeBSD.cpp
@@ -68,6 +68,9 @@ int LOS::ScreenBrightness(){
screenbrightness = val;
}
}
+ //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;
}
bgstack15