Skip to content

Commit 305b7f2

Browse files
committed
Adjust max dimensions for VESA framebuffer
1 parent 2ac7140 commit 305b7f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bios/stage-2/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ fn start(disk_number: u16, partition_table_start: *const u8) -> ! {
101101
writeln!(screen::Writer, "{memory_map:x?}").unwrap();
102102

103103
// TODO: load these from the kernel's config instead of hardcoding
104-
let max_width = 1000;
105-
let max_height = 1000;
104+
let max_width = 1280;
105+
let max_height = 720;
106106

107107
let mut vesa_info = vesa::VesaInfo::query(disk_buffer).unwrap();
108108
let vesa_mode = vesa_info
109109
.get_best_mode(max_width, max_height)
110110
.unwrap()
111-
.unwrap();
111+
.expect("no suitable VESA mode found");
112112
writeln!(
113113
screen::Writer,
114114
"VESA MODE: {}x{}",

0 commit comments

Comments
 (0)