From: Hans de Goede Date: Sat, 27 Mar 2021 15:24:39 +0000 (+0100) Subject: text/tribar: Fix ply_boot_splash_hide () not clearing the terminal X-Git-Tag: 22.02.122~15^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6a8cf9dad4a4e6d0d78ef8b09092f4af0c48d68;p=thirdparty%2Fplymouth.git 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 --- 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); } }