diff options
Diffstat (limited to 'gui/pages.cpp')
-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); } |