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.
This commit is contained in:
Ray Strode 2008-10-30 12:57:35 -04:00
parent 4fc5d6b5bd
commit 602d997200
2 changed files with 5 additions and 1 deletions

View 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);

View 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;