From 5eba40e42b84e9cf89344300f2f53b93d6367c80 Mon Sep 17 00:00:00 2001 From: Scott James Remnant Date: Thu, 18 Mar 2010 21:01:23 +0000 Subject: [PATCH] [two-step] resume animations on display_normal Change the display_normal() function so that rather than being a no-op if we already saved the state as normal, it restarts any animations and redraws the views. The only thing we now do if the state is not previously the same is hide any prompt. This allows this to be used to reanimate the plugin on reactivate. --- src/plugins/splash/two-step/plugin.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/plugins/splash/two-step/plugin.c b/src/plugins/splash/two-step/plugin.c index 967eac9c..27253d64 100644 --- a/src/plugins/splash/two-step/plugin.c +++ b/src/plugins/splash/two-step/plugin.c @@ -1045,13 +1045,11 @@ display_normal (ply_boot_splash_plugin_t *plugin) { pause_views (plugin); if (plugin->state != PLY_BOOT_SPLASH_DISPLAY_NORMAL) - { - plugin->state = PLY_BOOT_SPLASH_DISPLAY_NORMAL; - hide_prompt (plugin); - start_progress_animation (plugin); + hide_prompt (plugin); - redraw_views (plugin); - } + plugin->state = PLY_BOOT_SPLASH_DISPLAY_NORMAL; + start_progress_animation (plugin); + redraw_views (plugin); unpause_views (plugin); } -- 2.47.3