diff options
author | Charlie Brej <cbrej@cs.man.ac.uk> | 2009-11-29 13:11:39 +0000 |
---|---|---|
committer | Charlie Brej <cbrej@cs.man.ac.uk> | 2009-11-29 13:11:39 +0000 |
commit | 9820d117c77fef0232419ac93913d0a269c1fb7e (patch) | |
tree | 2334da28170a18a2e9b87a2c20aa172d156aac8d | |
parent | 69deaaa30a472f10101977e98a292b2e007a296d (diff) |
[fade-throbber] Draw password dialog even if not animating
If is_animating was not set, the draw would quit before drawing the dialog.
-rw-r--r-- | src/plugins/splash/fade-throbber/plugin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/splash/fade-throbber/plugin.c b/src/plugins/splash/fade-throbber/plugin.c index bde42c1d..2e3221ef 100644 --- a/src/plugins/splash/fade-throbber/plugin.c +++ b/src/plugins/splash/fade-throbber/plugin.c @@ -668,6 +668,9 @@ draw_normal_view (view_t *view, plugin = view->plugin; + if (!plugin->is_animating) + return; + logo_area.width = ply_image_get_width (plugin->logo_image); logo_area.height = ply_image_get_height (plugin->logo_image); logo_data = ply_image_get_data (plugin->logo_image); @@ -752,9 +755,6 @@ on_draw (view_t *view, draw_background (view, pixel_buffer, x, y, width, height); - if (!plugin->is_animating) - return; - if (plugin->state == PLY_BOOT_SPLASH_DISPLAY_NORMAL) draw_normal_view (view, pixel_buffer, x, y, width, height); else |