api: make VideoModeHandle into VideoMode
The video mode is generally a static data and not a reference to some video mode. This changes the exclusive fullscreen API to match that an accept a monitor now.
This commit is contained in:
parent
5462f27dda
commit
ee245c569d
28 changed files with 247 additions and 475 deletions
|
|
@ -1311,8 +1311,8 @@ unsafe fn public_window_callback_inner(
|
|||
*fullscreen_monitor = Some(MonitorHandle::new(new_monitor));
|
||||
}
|
||||
},
|
||||
Fullscreen::Exclusive(ref video_mode) => {
|
||||
let old_monitor = video_mode.monitor.hmonitor();
|
||||
Fullscreen::Exclusive(ref monitor, _) => {
|
||||
let old_monitor = monitor.hmonitor();
|
||||
if let Ok(old_monitor_info) = monitor::get_monitor_info(old_monitor) {
|
||||
let old_monitor_rect = old_monitor_info.monitorInfo.rcMonitor;
|
||||
window_pos.x = old_monitor_rect.left;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue