kernel: Print percentage in splash screen
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b978d02cfb
commit
a595a77421
@ -151,7 +151,7 @@ static void update_splash(const char* message, u32 current, u32 total)
|
|||||||
Framebuffer::rect(line_begin, line_height + 20, line_length, 16, BLACK);
|
Framebuffer::rect(line_begin, line_height + 20, line_length, 16, BLACK);
|
||||||
|
|
||||||
TextConsole::move_to(Framebuffer::width() / 2 - 100, line_height + 20);
|
TextConsole::move_to(Framebuffer::width() / 2 - 100, line_height + 20);
|
||||||
TextConsole::print(message).release_value();
|
TextConsole::printf("%s (%d%%)", message, (100 / total) * current).release_value();
|
||||||
|
|
||||||
TextConsole::move_to(0, 0);
|
TextConsole::move_to(0, 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user