diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-01-08 16:37:15 +1100 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-01-08 16:37:15 +1100 |
commit | 1a57970670fa73eba47fb26c85316c6eb2884f76 (patch) | |
tree | 7012a797086bcf9ed86d0aeffee0c9f529f52838 | |
parent | ba15ae87098f62df9f7c81a71c3882d05e8c8d80 (diff) | |
download | talos-petitboot-1a57970670fa73eba47fb26c85316c6eb2884f76.tar.gz talos-petitboot-1a57970670fa73eba47fb26c85316c6eb2884f76.zip |
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 <jk@ozlabs.org>
-rw-r--r-- | petitboot.c | 3 |
1 files changed, 1 insertions, 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) |