Able 2022-02-07 07:01:25 -06:00
parent e1628c4089
commit aadd93bdb3
Signed by untrusted user: able
GPG Key ID: D164AF5F5700BE51
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());
// loop {}
/*
if let Ok(gop) = system_table
.boot_services()
.locate_protocol::<GraphicsOutput>()
.boot_services()
.locate_protocol::<GraphicsOutput>()
{
let gop = gop.expect("Warnings encountered while opening GOP");
// Maybe save this
let gop = unsafe { &mut *gop.get() };
let mode = gop
.modes()
.map(|mode| mode.expect("Warnings encountered while querying mode"))
.find(|mode| {
let info = mode.info();
info.resolution() == (1440, 900)
})
.unwrap();
.modes()
.map(|mode| mode.expect("Warnings encountered while querying mode"))
.find(|mode| {
let info = mode.info();
info.resolution() == (1440, 900)
})
.unwrap();
gop.set_mode(&mode)
.expect_success("Failed to set graphics mode");
//crate::check_screenshot(bt, "gop_test");
.expect_success("Failed to set graphics mode");
draw_fb(gop);
} else {
@ -76,10 +73,7 @@ fn main(_handle: Handle, mut system_table: SystemTable<Boot>) -> Status {
warn!("UEFI Graphics Output Protocol is not supported");
}
*/
// */
// exit boot services
kernel_main();

1
qprofiler Submodule

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