From 1a57970670fa73eba47fb26c85316c6eb2884f76 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 8 Jan 2008 16:37:15 +1100 Subject: [PATCH] Give boot messages time to display. Currently we don't see booting messages, as petitboot has quit before the fbdev has updated. By using twin_window_draw() in pboot_message, we force the refresh before petitboot exits. Also, don't exit in the gameOS path - may as well leave the GUI active while rebooting. Signed-off-by: Jeremy Kerr --- petitboot.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/petitboot.c b/petitboot.c index 6f2a386..48442e9 100644 --- a/petitboot.c +++ b/petitboot.c @@ -797,7 +797,6 @@ twin_bool_t pboot_event_filter(twin_screen_t *screen, case KEY_DELETE: pboot_message("booting to GameOS"); system(BOOT_GAMEOS_BIN); - pboot_quit(); } case TwinEventKeyUp: twin_screen_set_cursor(pboot_screen, NULL, 0, 0); @@ -942,7 +941,7 @@ void pboot_message(const char *fmt, ...) 0, 0, pboot_spane->window->pixmap->width, pboot_spane->window->pixmap->height); - twin_window_queue_paint(pboot_spane->window); + twin_window_draw(pboot_spane->window); } static void pboot_create_spane(void) -- 2.39.2