From 2346efabb4d2e0d98d117d1a8ac01e78e785e006 Mon Sep 17 00:00:00 2001 From: Scott James Remnant Date: Thu, 18 Mar 2010 21:00:31 +0000 Subject: [PATCH] [space-flares] 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/space-flares/plugin.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/plugins/splash/space-flares/plugin.c b/src/plugins/splash/space-flares/plugin.c index c13beadf..4bfe8341 100644 --- a/src/plugins/splash/space-flares/plugin.c +++ b/src/plugins/splash/space-flares/plugin.c @@ -1841,12 +1841,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_animation (plugin); - redraw_views (plugin); - } + hide_prompt (plugin); + + plugin->state = PLY_BOOT_SPLASH_DISPLAY_NORMAL; + start_animation (plugin); + redraw_views (plugin); unpause_views (plugin); }