From c6a8cf9dad4a4e6d0d78ef8b09092f4af0c48d68 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sat, 27 Mar 2021 16:24:39 +0100 Subject: text/tribar: Fix ply_boot_splash_hide () not clearing the terminal In order to clear the console/terminal back to black again when hiding the splash, we must restore the original terminal palette, so that black actually is black before calling ply_text_display_clear_screen (). Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1933378 Signed-off-by: Hans de Goede --- src/plugins/splash/text/plugin.c | 3 +-- src/plugins/splash/tribar/plugin.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/plugins/splash/text/plugin.c b/src/plugins/splash/text/plugin.c index 7805b9e8..3fa01a77 100644 --- a/src/plugins/splash/text/plugin.c +++ b/src/plugins/splash/text/plugin.c @@ -233,11 +233,10 @@ view_hide (view_t *view) terminal = ply_text_display_get_terminal (view->display); + ply_terminal_reset_colors (terminal); ply_text_display_set_background_color (view->display, PLY_TERMINAL_COLOR_DEFAULT); ply_text_display_clear_screen (view->display); ply_text_display_show_cursor (view->display); - - ply_terminal_reset_colors (terminal); } } diff --git a/src/plugins/splash/tribar/plugin.c b/src/plugins/splash/tribar/plugin.c index 1778822a..7c33e184 100644 --- a/src/plugins/splash/tribar/plugin.c +++ b/src/plugins/splash/tribar/plugin.c @@ -239,11 +239,10 @@ view_hide (view_t *view) terminal = ply_text_display_get_terminal (view->display); + ply_terminal_reset_colors (terminal); ply_text_display_set_background_color (view->display, PLY_TERMINAL_COLOR_DEFAULT); ply_text_display_clear_screen (view->display); ply_text_display_show_cursor (view->display); - - ply_terminal_reset_colors (terminal); } } -- cgit v1.2.3