gop
This commit is contained in:
parent
118c2edfc1
commit
6d74772961
|
@ -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
1
qprofiler
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 39f39068029fce6a94c7bd5cc960b07d9d1b2288
|
Loading…
Reference in a new issue