kms: Fix previous commit..
This commit is contained in:
parent
64e03d11d7
commit
8971d8f430
1 changed files with 2 additions and 2 deletions
|
|
@ -621,9 +621,9 @@ fn populate_modes(
|
|||
.iter()
|
||||
.find(|mode| mode.mode_type().contains(ModeTypeFlags::PREFERRED))
|
||||
.copied()
|
||||
.or(conn_info.modes().get(0))
|
||||
.or(conn_info.modes().get(0).copied())
|
||||
else {
|
||||
bail!("No mode found");
|
||||
anyhow::bail!("No mode found");
|
||||
};
|
||||
let refresh_rate = drm_helpers::calculate_refresh_rate(mode);
|
||||
let output_mode = OutputMode {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue