summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2021-03-27 16:24:39 +0100
committerHans de Goede <hdegoede@redhat.com>2021-03-29 09:25:29 +0200
commitc6a8cf9dad4a4e6d0d78ef8b09092f4af0c48d68 (patch)
tree82fb6f0ed31bdb3d9c78bcece1f67a13856ef494
parent9b9d7e1b3a13a544d4d55abfe88f316a8ede9377 (diff)
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 <hdegoede@redhat.com>
-rw-r--r--src/plugins/splash/text/plugin.c3
-rw-r--r--src/plugins/splash/tribar/plugin.c3
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);
}
}