diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-08-23 21:02:18 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:42:23 +0300 |
commit | 8fafe0d9327854d8d8c78ee67476e6d2c3e9d557 (patch) | |
tree | 042b265a2352b18f5b8e7ce8b9feac61ef8052b4 /anim | |
parent | 683095ebd50cc9fee77b363449b726000de43c66 (diff) |
fixed constant RotateScreenTask recreation for smooth performance.
Diffstat (limited to 'anim')
-rw-r--r-- | anim/task.cpp | 5 | ||||
-rw-r--r-- | anim/task.hpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/anim/task.cpp b/anim/task.cpp index 8b8726ba7c..01e548eef1 100644 --- a/anim/task.cpp +++ b/anim/task.cpp @@ -55,4 +55,9 @@ namespace anim { return State() == ECancelled; } + + bool Task::IsRunning() const + { + return State() == EInProgress; + } } diff --git a/anim/task.hpp b/anim/task.hpp index 538481ae15..b1366e9c80 100644 --- a/anim/task.hpp +++ b/anim/task.hpp @@ -40,5 +40,6 @@ namespace anim bool IsCancelled() const; bool IsEnded() const; + bool IsRunning() const; }; } |