]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Make the throbber less choppy, by always showing every frame
authorRay Strode <rstrode@redhat.com>
Wed, 28 May 2008 18:33:01 +0000 (14:33 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 28 May 2008 18:33:01 +0000 (14:33 -0400)
src/splash-plugins/spinfinity/throbber.c

index af34835ea9d5af13c9296bd54cca51795711a1e9..15f8fbb0c5702129e572fa0720c596faac0fbfa3 100644 (file)
@@ -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),