winit-core: move monitor handle

This commit is contained in:
Kirill Chibisov 2025-05-01 19:35:04 +09:00
parent 3493a20173
commit 3142355417
10 changed files with 43 additions and 32 deletions

View file

@ -55,11 +55,11 @@ impl VideoModeHandle {
) -> VideoModeHandle {
let refresh_rate_millihertz = refresh_rate_millihertz(&uiscreen);
let size = screen_mode.size();
let mode = VideoMode {
size: (size.width as u32, size.height as u32).into(),
bit_depth: None,
let mode = VideoMode::new(
(size.width as u32, size.height as u32).into(),
None,
refresh_rate_millihertz,
};
);
VideoModeHandle {
mode,