diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2015-12-28 21:54:50 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2016-01-27 17:53:13 +0100 |
commit | fbb4353a247157d32208f8f133cd1ee42f4fbc49 (patch) | |
tree | 6f819fbdd21f2adef4f7ba4a5b4d02054cc02f29 /gui/blanktimer.cpp | |
parent | Adopted Storage support (diff) | |
download | android_bootable_recovery-fbb4353a247157d32208f8f133cd1ee42f4fbc49.tar android_bootable_recovery-fbb4353a247157d32208f8f133cd1ee42f4fbc49.tar.gz android_bootable_recovery-fbb4353a247157d32208f8f133cd1ee42f4fbc49.tar.bz2 android_bootable_recovery-fbb4353a247157d32208f8f133cd1ee42f4fbc49.tar.lz android_bootable_recovery-fbb4353a247157d32208f8f133cd1ee42f4fbc49.tar.xz android_bootable_recovery-fbb4353a247157d32208f8f133cd1ee42f4fbc49.tar.zst android_bootable_recovery-fbb4353a247157d32208f8f133cd1ee42f4fbc49.zip |
Diffstat (limited to '')
-rw-r--r-- | gui/blanktimer.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gui/blanktimer.cpp b/gui/blanktimer.cpp index 06208e273..4662b1fab 100644 --- a/gui/blanktimer.cpp +++ b/gui/blanktimer.cpp @@ -26,9 +26,9 @@ using namespace std; #include "blanktimer.hpp" #include "../data.hpp" extern "C" { -#include "../minuitwrp/minui.h" #include "../twcommon.h" } +#include "../minuitwrp/minui.h" #include "../twrp-functions.hpp" #include "../variables.h" @@ -71,7 +71,8 @@ void blanktimer::checkForTimeout() { PageManager::ChangeOverlay("lock"); } #ifndef TW_NO_SCREEN_BLANK - if (state == kOff && gr_fb_blank(1) >= 0) { + if (state == kOff) { + gr_fb_blank(true); state = kBlanked; } #endif @@ -97,10 +98,7 @@ void blanktimer::resetTimerAndUnblank(void) { switch (state) { case kBlanked: #ifndef TW_NO_SCREEN_BLANK - if (gr_fb_blank(0) < 0) { - LOGINFO("blanktimer::resetTimerAndUnblank failed to gr_fb_blank(0)\n"); - break; - } + gr_fb_blank(false); #endif // TODO: this is asymmetric with postscreenblank.sh - shouldn't it be under the next case label? TWFunc::check_and_run_script("/sbin/postscreenunblank.sh", "unblank"); |