summaryrefslogtreecommitdiffstats
path: root/gui/pages.cpp
diff options
context:
space:
mode:
authorgordon1337 <gsysgordon@gmail.com>2013-06-08 14:17:07 +0200
committergordon1337 <gsysgordon@gmail.com>2013-06-08 14:17:07 +0200
commit0d9133d654805be31a7e21f4ccb74e9e0a44fd55 (patch)
tree0a1c0bae00b525fbbc1a3e50dad02d2e50330d47 /gui/pages.cpp
parentConsole Render Bug caused by touch drag event (diff)
downloadandroid_bootable_recovery-0d9133d654805be31a7e21f4ccb74e9e0a44fd55.tar
android_bootable_recovery-0d9133d654805be31a7e21f4ccb74e9e0a44fd55.tar.gz
android_bootable_recovery-0d9133d654805be31a7e21f4ccb74e9e0a44fd55.tar.bz2
android_bootable_recovery-0d9133d654805be31a7e21f4ccb74e9e0a44fd55.tar.lz
android_bootable_recovery-0d9133d654805be31a7e21f4ccb74e9e0a44fd55.tar.xz
android_bootable_recovery-0d9133d654805be31a7e21f4ccb74e9e0a44fd55.tar.zst
android_bootable_recovery-0d9133d654805be31a7e21f4ccb74e9e0a44fd55.zip
Diffstat (limited to '')
-rw-r--r--gui/pages.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/pages.cpp b/gui/pages.cpp
index 11fe9b080..86d4dff9f 100644
--- a/gui/pages.cpp
+++ b/gui/pages.cpp
@@ -41,8 +41,10 @@ extern "C" {
#include "rapidxml.hpp"
#include "objects.hpp"
+#include "blanktimer.hpp"
extern int gGuiRunning;
+extern blanktimer blankTimer;
std::map<std::string, PageSet*> PageManager::mPageSets;
PageSet* PageManager::mCurrentSet;
@@ -890,6 +892,9 @@ int PageManager::Render(void)
int PageManager::Update(void)
{
+ if(blankTimer.IsScreenOff())
+ return 0;
+
return (mCurrentSet ? mCurrentSet->Update() : -1);
}