Display BIOS date correctly

This commit is contained in:
2024-03-30 12:36:23 -05:00
parent 5b53383d80
commit b35a391887
4 changed files with 35 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ namespace BIOSInfo {
font_sliders[0] = FontSlider::create_for(FontWriter::BIOSFont::Info, result.kernel_maker);
font_sliders[1] = FontSlider::create_for(FontWriter::BIOSFont::Info, result.gui_version);
border_tiles[0].concat(border_tiles[1]);
return SysCall::get_bios_version();
return result;
}
static bool update_or_exit(const SysCall::BIOSVersion& bios_version) {
@@ -78,7 +78,7 @@ namespace BIOSInfo {
}
auto cursor = FontWriter::update(TextOffset);
FontWriter::bios_font_writer.write(cursor, "BIOS INFORMATION\n----------------\nDate:\n%X\nKernel-Maker:\n", bios_version.date_bcd);
FontWriter::bios_font_writer.write(cursor, "BIOS INFORMATION\n----------------\nDate (day/month/year):\n%i/%i/%i\nKernel-Maker:\n", bios_version.date.day, bios_version.date.month, bios_version.date.year);
const auto old_pos_x = cursor.pos.x;
FontWriter::bios_font_writer.write(move_cursor(cursor, font_sliders[0].count, old_pos_x), "%s\n", bios_version.kernel_maker);