This commit is contained in:
Able 2022-02-07 07:01:25 -06:00
parent 118c2edfc1
commit 6d74772961
2 changed files with 12 additions and 17 deletions

View file

@ -47,28 +47,25 @@ fn main(_handle: Handle, mut system_table: SystemTable<Boot>) -> Status {
info!("{:?}", stdout.cursor_position()); info!("{:?}", stdout.cursor_position());
// loop {} // loop {}
/*
if let Ok(gop) = system_table if let Ok(gop) = system_table
.boot_services() .boot_services()
.locate_protocol::<GraphicsOutput>() .locate_protocol::<GraphicsOutput>()
{ {
let gop = gop.expect("Warnings encountered while opening GOP"); let gop = gop.expect("Warnings encountered while opening GOP");
// Maybe save this // Maybe save this
let gop = unsafe { &mut *gop.get() }; let gop = unsafe { &mut *gop.get() };
let mode = gop let mode = gop
.modes() .modes()
.map(|mode| mode.expect("Warnings encountered while querying mode")) .map(|mode| mode.expect("Warnings encountered while querying mode"))
.find(|mode| { .find(|mode| {
let info = mode.info(); let info = mode.info();
info.resolution() == (1440, 900) info.resolution() == (1440, 900)
}) })
.unwrap(); .unwrap();
gop.set_mode(&mode) gop.set_mode(&mode)
.expect_success("Failed to set graphics mode"); .expect_success("Failed to set graphics mode");
//crate::check_screenshot(bt, "gop_test");
draw_fb(gop); draw_fb(gop);
} else { } else {
@ -76,10 +73,7 @@ fn main(_handle: Handle, mut system_table: SystemTable<Boot>) -> Status {
warn!("UEFI Graphics Output Protocol is not supported"); warn!("UEFI Graphics Output Protocol is not supported");
} }
// */
*/
// exit boot services // exit boot services
kernel_main(); kernel_main();

1
qprofiler Submodule

@ -0,0 +1 @@
Subproject commit 39f39068029fce6a94c7bd5cc960b07d9d1b2288