]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Don't frob text cursor in window for all plugins
authorRay Strode <rstrode@redhat.com>
Wed, 15 Oct 2008 18:11:24 +0000 (14:11 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 15 Oct 2008 18:11:24 +0000 (14:11 -0400)
Instead only set it to 0,0 for text plugin and
clear screen for others (except details where we
don't do anything).

src/libplybootsplash/ply-window.c
src/plugins/splash/fade-in/plugin.c
src/plugins/splash/solar/plugin.c
src/plugins/splash/spinfinity/plugin.c
src/plugins/splash/text/plugin.c

index 2c25b2d9439429a891182832a5f6b05198f5fae6..b44292d360baf0119d408df18175907e6590a6cf 100644 (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)
index 3dda09f805ecbd8d85efeeb711dd673e6fb88c5f..b0003cfb0da65b3682ed1498bc1ec1b6d0d874c5 100644 (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);
 
index 9dd0522f90879cd172738b7e795c52691c8c6ef4..3c589ff80dec2de1e35ebe37a29873212a6211b5 100644 (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);
index 79b1eda1b4875014b8972210519e561f1bda7727..a55196f842b35e760ea91eab4e80d20f3f8a0751 100644 (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);
 
index c65224b5437188b6d44d1cf054e7588f4696af49..5e93da1e5cc5166370c959905c596a7e40b2ca52 100644 (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,