Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/anim
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2012-08-23 21:02:18 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:42:23 +0300
commit8fafe0d9327854d8d8c78ee67476e6d2c3e9d557 (patch)
tree042b265a2352b18f5b8e7ce8b9feac61ef8052b4 /anim
parent683095ebd50cc9fee77b363449b726000de43c66 (diff)
fixed constant RotateScreenTask recreation for smooth performance.
Diffstat (limited to 'anim')
-rw-r--r--anim/task.cpp5
-rw-r--r--anim/task.hpp1
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;
};
}