Don't frob text cursor in window for all plugins

Instead only set it to 0,0 for text plugin and
clear screen for others (except details where we
don't do anything).
This commit is contained in:
Ray Strode 2008-10-15 14:11:24 -04:00
parent 6f82e0d122
commit 3498084a4e
5 changed files with 14 additions and 5 deletions

View file

@ -493,9 +493,6 @@ ply_window_open (ply_window_t *window)
ply_window_look_up_color_palette (window);
ply_window_save_color_palette (window);
ply_window_hide_text_cursor (window);
ply_window_set_text_cursor_position (window, 0, 0);
ply_event_loop_watch_signal (window->loop,
SIGWINCH,
(ply_event_handler_t)

View file

@ -505,7 +505,10 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin,
SIGINT,
(ply_event_handler_t)
on_interrupt, plugin);
ply_window_clear_screen (plugin->window);
ply_window_hide_text_cursor (plugin->window);
ply_trace ("starting boot animation");
start_animation (plugin);

View file

@ -1186,6 +1186,9 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin,
(ply_event_handler_t)
on_interrupt, plugin);
ply_window_clear_screen (plugin->window);
ply_window_hide_text_cursor (plugin->window);
ply_trace ("starting boot animation");
start_animation (plugin);

View file

@ -405,7 +405,10 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin,
SIGINT,
(ply_event_handler_t)
on_interrupt, plugin);
ply_window_clear_screen (plugin->window);
ply_window_hide_text_cursor (plugin->window);
ply_trace ("starting boot animation");
start_animation (plugin);

View file

@ -248,6 +248,9 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin,
(ply_window_erase_handler_t)
on_erase, plugin);
ply_window_hide_text_cursor (plugin->window);
ply_window_set_text_cursor_position (plugin->window, 0, 0);
plugin->loop = loop;
ply_event_loop_watch_for_exit (loop, (ply_event_loop_exit_handler_t)
detach_from_event_loop,