monitor: refactor MonitorHandle to store dyn object
This also alters `VideoMode` to be a regular object and not reference the `MonitorHandle`, since it's a static data. Given that `VideoMode` set may change during runtime keeping the reference as a some sort of validity may not be idea and propagating errors when changing video mode could be more reliable.
This commit is contained in:
parent
be1baf164c
commit
f1c5afd84e
43 changed files with 726 additions and 826 deletions
|
|
@ -19,7 +19,8 @@ use windows_sys::Win32::UI::WindowsAndMessaging::{
|
|||
use crate::dpi::{PhysicalPosition, PhysicalSize, Size};
|
||||
use crate::icon::Icon;
|
||||
use crate::keyboard::ModifiersState;
|
||||
use crate::platform_impl::platform::{event_loop, util, Fullscreen, SelectedCursor};
|
||||
use crate::monitor::Fullscreen;
|
||||
use crate::platform_impl::platform::{event_loop, util, SelectedCursor};
|
||||
use crate::window::{Theme, WindowAttributes};
|
||||
|
||||
/// Contains information about states and the window that the callback is going to use.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue