From: Ray Strode Date: Thu, 30 Oct 2008 16:57:35 +0000 (-0400) Subject: Reset window mode in splash plugins before drawing X-Git-Tag: 0.6.0~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=602d9972002cb5fd7fd946f1af930c4b00017f30;p=thirdparty%2Fplymouth.git Reset window mode in splash plugins before drawing 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. --- diff --git a/src/plugins/splash/fade-in/plugin.c b/src/plugins/splash/fade-in/plugin.c index b0003cfb..7d595b3d 100644 --- a/src/plugins/splash/fade-in/plugin.c +++ b/src/plugins/splash/fade-in/plugin.c @@ -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); diff --git a/src/plugins/splash/solar/plugin.c b/src/plugins/splash/solar/plugin.c index ae024337..eebe33a2 100644 --- a/src/plugins/splash/solar/plugin.c +++ b/src/plugins/splash/solar/plugin.c @@ -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;