diff options
author | Ray Strode <rstrode@redhat.com> | 2009-10-05 17:37:48 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2009-10-05 17:37:48 -0400 |
commit | 7a87b2210b2baa2c43276062e5a24b9b3e5760e6 (patch) | |
tree | 7daf2459385be70854c80f04222a298811b4828f | |
parent | 2af482af166dbb18816b6f9fbee2b8ea6dc1a355 (diff) |
[text] Don't crash after password prompt
We were treating the passed in view to the
draw handler as if it was the plugin itself.
-rw-r--r-- | src/plugins/splash/text/plugin.c | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/src/plugins/splash/text/plugin.c b/src/plugins/splash/text/plugin.c index 6ca7ee1b..bb09b22d 100644 --- a/src/plugins/splash/text/plugin.c +++ b/src/plugins/splash/text/plugin.c @@ -464,37 +464,14 @@ stop_animation (ply_boot_splash_plugin_t *plugin) } static void -clear_views (ply_boot_splash_plugin_t *plugin) -{ - ply_list_node_t *node; - - assert (plugin != NULL); - assert (plugin->loop != NULL); - - node = ply_list_get_first_node (plugin->views); - while (node != NULL) - { - ply_list_node_t *next_node; - view_t *view; - - view = ply_list_node_get_data (node); - next_node = ply_list_get_next_node (plugin->views, node); - - ply_text_display_clear_screen (view->display); - - node = next_node; - } -} - -static void -on_draw (ply_boot_splash_plugin_t *plugin, +on_draw (view_t *view, ply_terminal_t *terminal, int x, int y, int width, int height) { - clear_views (plugin); + ply_text_display_clear_screen (view->display); } static void |