summaryrefslogtreecommitdiffstats
path: root/gui/blanktimer.cpp
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2013-03-12 03:35:23 +0100
committerGerrit Code Review <gerrit@5.9.244.119>2013-03-12 03:35:23 +0100
commit4771e0130a5adac0c522a4c26aba398650a8a58e (patch)
tree3e364bd99e8f017ab86f4444da0d3d02037c7154 /gui/blanktimer.cpp
parentMerge "Remove unused fonts from 320x480" into twrp2.4 (diff)
parentadd no fb blanking (diff)
downloadandroid_bootable_recovery-4771e0130a5adac0c522a4c26aba398650a8a58e.tar
android_bootable_recovery-4771e0130a5adac0c522a4c26aba398650a8a58e.tar.gz
android_bootable_recovery-4771e0130a5adac0c522a4c26aba398650a8a58e.tar.bz2
android_bootable_recovery-4771e0130a5adac0c522a4c26aba398650a8a58e.tar.lz
android_bootable_recovery-4771e0130a5adac0c522a4c26aba398650a8a58e.tar.xz
android_bootable_recovery-4771e0130a5adac0c522a4c26aba398650a8a58e.tar.zst
android_bootable_recovery-4771e0130a5adac0c522a4c26aba398650a8a58e.zip
Diffstat (limited to 'gui/blanktimer.cpp')
-rw-r--r--gui/blanktimer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/blanktimer.cpp b/gui/blanktimer.cpp
index d7a6ffffc..7085557e8 100644
--- a/gui/blanktimer.cpp
+++ b/gui/blanktimer.cpp
@@ -95,9 +95,11 @@ int blanktimer::setClockTimer(void) {
setBrightness(0);
PageManager::ChangeOverlay("lock");
}
+#ifndef TW_NO_SCREEN_BLANK
if (conblank == 2 && gr_fb_blank(1) >= 0) {
setConBlank(3);
}
+#endif
}
return -1; //shouldn't get here
}
@@ -126,10 +128,12 @@ void blanktimer::resetTimerAndUnblank(void) {
setTimer();
switch (conblank) {
case 3:
+#ifndef TW_NO_SCREEN_BLANK
if (gr_fb_blank(0) < 0) {
LOGI("blanktimer::resetTimerAndUnblank failed to gr_fb_blank(0)\n");
break;
}
+#endif
// No break here, we want to keep going
case 2:
gui_forceRender();