Add refresh_rate_millihertz for MonitorHandle
This also alters `VideoMode::refresh_rate` to `VideoMode::refresh_rate_millihertz` which now returns monitor refresh rate in mHz.
This commit is contained in:
parent
e289f30e5d
commit
a06bb3f992
11 changed files with 172 additions and 81 deletions
|
|
@ -17,6 +17,10 @@ impl MonitorHandle {
|
|||
None
|
||||
}
|
||||
|
||||
pub fn refresh_rate_millihertz(&self) -> Option<u32> {
|
||||
None
|
||||
}
|
||||
|
||||
pub fn size(&self) -> PhysicalSize<u32> {
|
||||
PhysicalSize {
|
||||
width: 0,
|
||||
|
|
@ -41,8 +45,8 @@ impl VideoMode {
|
|||
unimplemented!();
|
||||
}
|
||||
|
||||
pub fn refresh_rate(&self) -> u16 {
|
||||
32
|
||||
pub fn refresh_rate_millihertz(&self) -> u32 {
|
||||
32000
|
||||
}
|
||||
|
||||
pub fn monitor(&self) -> RootMonitorHandle {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue