diff options
author | gordon1337 <gsysgordon@gmail.com> | 2013-06-08 14:17:07 +0200 |
---|---|---|
committer | gordon1337 <gsysgordon@gmail.com> | 2013-06-08 14:17:07 +0200 |
commit | 0d9133d654805be31a7e21f4ccb74e9e0a44fd55 (patch) | |
tree | 0a1c0bae00b525fbbc1a3e50dad02d2e50330d47 /gui/blanktimer.cpp | |
parent | Console Render Bug caused by touch drag event (diff) | |
download | android_bootable_recovery-0d9133d654805be31a7e21f4ccb74e9e0a44fd55.tar android_bootable_recovery-0d9133d654805be31a7e21f4ccb74e9e0a44fd55.tar.gz android_bootable_recovery-0d9133d654805be31a7e21f4ccb74e9e0a44fd55.tar.bz2 android_bootable_recovery-0d9133d654805be31a7e21f4ccb74e9e0a44fd55.tar.lz android_bootable_recovery-0d9133d654805be31a7e21f4ccb74e9e0a44fd55.tar.xz android_bootable_recovery-0d9133d654805be31a7e21f4ccb74e9e0a44fd55.tar.zst android_bootable_recovery-0d9133d654805be31a7e21f4ccb74e9e0a44fd55.zip |
Diffstat (limited to 'gui/blanktimer.cpp')
-rw-r--r-- | gui/blanktimer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/blanktimer.cpp b/gui/blanktimer.cpp index 700a9ad27..0b1f0083c 100644 --- a/gui/blanktimer.cpp +++ b/gui/blanktimer.cpp @@ -48,6 +48,11 @@ blanktimer::blanktimer(void) { setTime(0); setConBlank(0); orig_brightness = getBrightness(); + screenoff = false; +} + +bool blanktimer::IsScreenOff() { + return screenoff; } void blanktimer::setTime(int newtime) { @@ -92,6 +97,7 @@ int blanktimer::setClockTimer(void) { if (sleepTimer && diff.tv_sec > sleepTimer && conblank < 2) { setConBlank(2); setBrightness(0); + screenoff = true; PageManager::ChangeOverlay("lock"); } #ifndef TW_NO_SCREEN_BLANK @@ -146,6 +152,7 @@ void blanktimer::resetTimerAndUnblank(void) { // No break here, we want to keep going case 2: gui_forceRender(); + screenoff = false; // No break here, we want to keep going case 1: setBrightness(orig_brightness); |