Verified Commit f12a4ff1 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fall back to current EFI GOP resolution

parent 92305f99
......@@ -219,7 +219,20 @@ impl Os<
},
Err(err) => {
log::warn!("Failed to get EFI EDID: {:?}", err);
None
// Fallback to the current output resolution
match Output::one() {
Ok(output) => {
Some((
output.0.Mode.Info.HorizontalResolution,
output.0.Mode.Info.VerticalResolution,
))
},
Err(err) => {
log::error!("Failed to get output: {:?}", err);
None
}
}
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment