mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
12 lines
350 B
Rust
12 lines
350 B
Rust
use simple_logger::SimpleLogger;
|
|
use winit::{event_loop::EventLoop, window::WindowBuilder};
|
|
|
|
fn main() {
|
|
SimpleLogger::new().init().unwrap();
|
|
let event_loop = EventLoop::new();
|
|
let window = WindowBuilder::new().build(&event_loop).unwrap();
|
|
|
|
dbg!(window.available_monitors().collect::<Vec<_>>());
|
|
dbg!(window.primary_monitor());
|
|
}
|