From: Jeremy Kerr Date: Tue, 8 Jan 2008 05:37:15 +0000 (+1100) Subject: Give boot messages time to display. X-Git-Tag: v1.0.0~960 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=1a57970670fa73eba47fb26c85316c6eb2884f76;hp=ba15ae87098f62df9f7c81a71c3882d05e8c8d80 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 --- 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)