diff options
author | Ken Moore <moorekou@gmail.com> | 2015-07-07 22:45:58 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-07-07 22:45:58 -0400 |
commit | 4c312659ea0e4bac5d855f0b6d99b673d7ba95f2 (patch) | |
tree | f4c883e3cd21fa693fd70c815452488b61b7fdd9 /libLumina/LuminaOS-FreeBSD.cpp | |
parent | Merge pull request #132 from rezso/patch-1 (diff) | |
download | lumina-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/LuminaOS-FreeBSD.cpp')
-rw-r--r-- | libLumina/LuminaOS-FreeBSD.cpp | 3 |
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; } |