kms: Fix frame scheduling
This commit is contained in:
parent
5617f3228b
commit
8da3ac6d75
4 changed files with 25 additions and 17 deletions
|
|
@ -316,6 +316,7 @@ fn get_manufacturer(vendor: &[char; 3]) -> &'static str {
|
|||
}
|
||||
}
|
||||
|
||||
// Returns refresh rate in milliherz
|
||||
pub fn calculate_refresh_rate(mode: Mode) -> u32 {
|
||||
let htotal = mode.hsync().2 as u32;
|
||||
let vtotal = mode.vsync().2 as u32;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue