diff options
author | Ricardo Gomez <ricardo.gomez331@gmail.com> | 2013-07-06 01:13:52 +0200 |
---|---|---|
committer | Dees_Troy <dees_troy@teamw.in> | 2013-08-25 23:10:08 +0200 |
commit | c9ecd4473c5763fe6c372e6fead1cc1f6b7714cf (patch) | |
tree | 017995b67d262612b59507fffd51fb57b42b9179 /gui/pages.cpp | |
parent | Unify indentation and little clean-up in TWRP files (diff) | |
download | android_bootable_recovery-c9ecd4473c5763fe6c372e6fead1cc1f6b7714cf.tar android_bootable_recovery-c9ecd4473c5763fe6c372e6fead1cc1f6b7714cf.tar.gz android_bootable_recovery-c9ecd4473c5763fe6c372e6fead1cc1f6b7714cf.tar.bz2 android_bootable_recovery-c9ecd4473c5763fe6c372e6fead1cc1f6b7714cf.tar.lz android_bootable_recovery-c9ecd4473c5763fe6c372e6fead1cc1f6b7714cf.tar.xz android_bootable_recovery-c9ecd4473c5763fe6c372e6fead1cc1f6b7714cf.tar.zst android_bootable_recovery-c9ecd4473c5763fe6c372e6fead1cc1f6b7714cf.zip |
Diffstat (limited to '')
-rw-r--r-- | gui/pages.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/pages.cpp b/gui/pages.cpp index 9aea1b85a..2bb70e170 100644 --- a/gui/pages.cpp +++ b/gui/pages.cpp @@ -41,10 +41,14 @@ 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; @@ -919,9 +923,10 @@ int PageManager::Render(void) int PageManager::Update(void) { +#ifndef TW_NO_SCREEN_TIMEOUT if(blankTimer.IsScreenOff()) return 0; - +#endif return (mCurrentSet ? mCurrentSet->Update() : -1); } |