openfirmware: move text cursor to top of screen before showing splashscreen
If we need to display some text during boot, it's nicer to have it on top of the splashscreen, rather than scroll the display down. Change-Id: I897073d31120ec3eebd2edc4632960db7eb7977d Reviewed-on: https://review.haiku-os.org/c/haiku/+/3596 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
0da81fed54
commit
a27d19ee57
@ -7,6 +7,7 @@
|
||||
|
||||
#include <boot/platform.h>
|
||||
#include <boot/stage2.h>
|
||||
#include <boot/platform/generic/text_console.h>
|
||||
#include <boot/platform/generic/video.h>
|
||||
#include <edid.h>
|
||||
#include <platform/openfirmware/openfirmware.h>
|
||||
@ -87,6 +88,10 @@ platform_switch_to_logo(void)
|
||||
gKernelArgs.frame_buffer.depth = depth;
|
||||
gKernelArgs.frame_buffer.bytes_per_row = lineBytes;
|
||||
|
||||
// Move text to top of display so we don't scroll the boot logo out as soon
|
||||
// as we display some text
|
||||
console_set_cursor(0, 0);
|
||||
|
||||
dprintf("video mode: %ux%ux%u\n", gKernelArgs.frame_buffer.width,
|
||||
gKernelArgs.frame_buffer.height, gKernelArgs.frame_buffer.depth);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user