From 8794036ba3ed47e82340ea43ebec3901274e764a Mon Sep 17 00:00:00 2001 From: bigbiff bigbiff Date: Sat, 9 Mar 2013 09:58:50 -0500 Subject: add no fb blanking Change-Id: Iaf771257d8f904807ca6f6c1a6c3d7993abadb85 --- gui/blanktimer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gui/blanktimer.cpp') 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(); -- cgit v1.2.3