]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[fade-throbber] Initialise views before animating
authorCharlie Brej <cbrej@cs.man.ac.uk>
Sat, 21 Nov 2009 12:52:48 +0000 (12:52 +0000)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Sat, 21 Nov 2009 12:52:48 +0000 (12:52 +0000)
Only run the call to animation after all views are initialised. No visible
changes but this is more correct.

src/plugins/splash/fade-throbber/plugin.c

index d2d9045a31d561ee9a8e09fd419debdde92e4860..bde42c1dd025eef15d5d0a6fdbc3428a2fd32077 100644 (file)
@@ -567,9 +567,6 @@ start_animation (ply_boot_splash_plugin_t *plugin)
   if (plugin->is_animating)
      return;
 
-  plugin->start_time = ply_get_timestamp ();
-  animate_at_time (plugin, plugin->start_time);
-  
   node = ply_list_get_first_node (plugin->views);
   while (node != NULL)
     {
@@ -586,6 +583,9 @@ start_animation (ply_boot_splash_plugin_t *plugin)
 
   plugin->is_animating = true;
   
+  plugin->start_time = ply_get_timestamp ();
+  animate_at_time (plugin, plugin->start_time);
+  
   if (plugin->mode == PLY_BOOT_SPLASH_MODE_SHUTDOWN)
     return;