Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
bootloader
Commits
f12a4ff1
Verified
Commit
f12a4ff1
authored
Feb 10, 2022
by
Jeremy Soller
Browse files
Fall back to current EFI GOP resolution
parent
92305f99
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/os/uefi/arch/x86_64/mod.rs
View file @
f12a4ff1
...
...
@@ -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
}
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment