]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Reset window mode in splash plugins before drawing
authorRay Strode <rstrode@redhat.com>
Thu, 30 Oct 2008 16:57:35 +0000 (12:57 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 30 Oct 2008 16:58:54 +0000 (12:58 -0400)
At some point during boot up the terminal gets kicked
out of raw mode.  By resetting the window mode before
drawing we ensure it stays in raw mode, so things like
password characters draw correctly.

src/plugins/splash/fade-in/plugin.c
src/plugins/splash/solar/plugin.c

index b0003cfb0da65b3682ed1498bc1ec1b6d0d874c5..7d595b3dc678ec70faa1028754ab3bbc794aca1b 100644 (file)
@@ -199,6 +199,8 @@ animate_at_time (ply_boot_splash_plugin_t *plugin,
   static double last_opacity = 0.0;
   double opacity = 0.0;
 
+  ply_window_set_mode (plugin->window, PLY_WINDOW_MODE_GRAPHICS);
+
   ply_frame_buffer_pause_updates (plugin->frame_buffer);
 
   width = ply_image_get_width (plugin->logo_image);
index ae0243373c05b10ee20e57f7c915bafda09adcd5..eebe33a237aebc90b6f09d853925800454bf87c3 100644 (file)
@@ -678,7 +678,9 @@ animate_attime (ply_boot_splash_plugin_t *plugin, double time)
 {
   ply_list_node_t *node;
   long width, height;
-  
+
+  ply_window_set_mode (plugin->window, PLY_WINDOW_MODE_GRAPHICS);
+
   if (plugin->progress_target>=0)
       plugin->progress = (plugin->progress*10 + plugin->progress_target) /11;