summaryrefslogtreecommitdiffstats
path: root/gui/pages.cpp
diff options
context:
space:
mode:
authorthat <github@that.at>2015-01-11 12:16:53 +0100
committerthat <github@that.at>2015-01-11 12:16:53 +0100
commitfb759d45f5c95e3184ffc9c35b57a0a463a6d1ab (patch)
tree66389b15099bbdc842b30b9863bc182ff6513337 /gui/pages.cpp
parentFix restore of images for mtd and bml nand (diff)
downloadandroid_bootable_recovery-fb759d45f5c95e3184ffc9c35b57a0a463a6d1ab.tar
android_bootable_recovery-fb759d45f5c95e3184ffc9c35b57a0a463a6d1ab.tar.gz
android_bootable_recovery-fb759d45f5c95e3184ffc9c35b57a0a463a6d1ab.tar.bz2
android_bootable_recovery-fb759d45f5c95e3184ffc9c35b57a0a463a6d1ab.tar.lz
android_bootable_recovery-fb759d45f5c95e3184ffc9c35b57a0a463a6d1ab.tar.xz
android_bootable_recovery-fb759d45f5c95e3184ffc9c35b57a0a463a6d1ab.tar.zst
android_bootable_recovery-fb759d45f5c95e3184ffc9c35b57a0a463a6d1ab.zip
Diffstat (limited to 'gui/pages.cpp')
-rw-r--r--gui/pages.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/gui/pages.cpp b/gui/pages.cpp
index a1a6346a4..aae85aec9 100644
--- a/gui/pages.cpp
+++ b/gui/pages.cpp
@@ -45,14 +45,9 @@ extern "C" {
#include "rapidxml.hpp"
#include "objects.hpp"
-#ifndef TW_NO_SCREEN_TIMEOUT
#include "blanktimer.hpp"
-#endif
extern int gGuiRunning;
-#ifndef TW_NO_SCREEN_TIMEOUT
-extern blanktimer blankTimer;
-#endif
std::map<std::string, PageSet*> PageManager::mPageSets;
PageSet* PageManager::mCurrentSet;
@@ -1197,10 +1192,8 @@ void PageManager::LoadCursorData(xml_node<>* node)
int PageManager::Update(void)
{
-#ifndef TW_NO_SCREEN_TIMEOUT
- if(blankTimer.IsScreenOff())
+ if(blankTimer.isScreenOff())
return 0;
-#endif
int res = (mCurrentSet ? mCurrentSet->Update() : -1);