Skip to content

Commit

Permalink
Display resolution fetching on boot.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed May 19, 2024
1 parent f074d50 commit 3cd5ad7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions programs/boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,31 @@ void check_ps2_keyboard() {
);
}

void display_info() {
log(INFO, F("Logging display info..."));

IO::printf(
F(" Screen size:\t{i}x{i}\r\n"),
Display::screen_width(),
Display::screen_height()
);

IO::printf(
F(" Viewport:\t{i}x{i}\r\n"),
Display::viewport_width(),
Display::viewport_height()
);

IO::printf(
F(" Colors:\t{i}\r\n"),
Display::supported_colors()
);
}

i32 main() {
log(INFO, F("Booting up Jessy OS..."));

display_info();
check_sys_folders();
scan_i2c_devs();
check_ps2_keyboard();
Expand Down

0 comments on commit 3cd5ad7

Please sign in to comment.