]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[script] Force graphics mode before each frame
authorRay Strode <rstrode@redhat.com>
Tue, 25 Aug 2009 01:25:52 +0000 (21:25 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 25 Aug 2009 01:25:52 +0000 (21:25 -0400)
It's what all the other boot splash plugins do.  This
is important because things occasionally muck with the
terminal during boot up (knocking it out of raw mode, etc),
and resetting the window graphics mode resets the terminal
settings as well.

Future, potentially better alternatives to this could be:

1) TIOCSLCKTRMIOS to lock the terminal settings
2) Using /dev/input instead of the tty for keyboard input

src/plugins/splash/script/plugin.c

index 594708328493bf76048c94bc5382d595cc646381..345045713e1827c3d078c1f48dc63854ab9e028e 100644 (file)
@@ -134,6 +134,8 @@ on_timeout (ply_boot_splash_plugin_t *plugin)
 {
   double sleep_time;
 
+  ply_window_set_mode (plugin->window, PLY_WINDOW_MODE_GRAPHICS);
+
   script_lib_plymouth_on_refresh (plugin->script_state,
                                   plugin->script_plymouth_lib);
   script_lib_sprite_refresh (plugin->script_sprite_lib);