summaryrefslogtreecommitdiffstats
path: root/src/splash-plugins/spinfinity
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-05-28 14:33:01 -0400
committerRay Strode <rstrode@redhat.com>2008-05-28 14:33:01 -0400
commit4bdf9b17618884569dc190279e61f028c4a82aa9 (patch)
tree1b5eccc743e4ccf9f8d541a9e4f3ecbc22fef1fd /src/splash-plugins/spinfinity
parentf288f865390288d7208059d0d46ff56a6154ec67 (diff)
downloadplymouth-4bdf9b17618884569dc190279e61f028c4a82aa9.tar.gz
plymouth-4bdf9b17618884569dc190279e61f028c4a82aa9.tar.xz
plymouth-4bdf9b17618884569dc190279e61f028c4a82aa9.zip
Make the throbber less choppy, by always showing every frame
Diffstat (limited to 'src/splash-plugins/spinfinity')
-rw-r--r--src/splash-plugins/spinfinity/throbber.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/splash-plugins/spinfinity/throbber.c b/src/splash-plugins/spinfinity/throbber.c
index af34835..15f8fbb 100644
--- a/src/splash-plugins/spinfinity/throbber.c
+++ b/src/splash-plugins/spinfinity/throbber.c
@@ -161,8 +161,14 @@ on_timeout (throbber_t *throbber)
double sleep_time;
throbber->now = ply_get_timestamp ();
+#ifdef REAL_TIME_ANIMATION
animate_at_time (throbber,
throbber->now - throbber->start_time);
+#else
+ static double time = 0.0;
+ time += 1.0 / FRAMES_PER_SECOND;
+ animate_at_time (throbber, time);
+#endif
sleep_time = 1.0 / FRAMES_PER_SECOND;
sleep_time = MAX (sleep_time - (ply_get_timestamp () - throbber->now),