mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 23:01:30 +11:00
8 lines
258 B
Rust
8 lines
258 B
Rust
|
extern crate winit;
|
||
|
|
||
|
fn main() {
|
||
|
let event_loop = winit::EventsLoop::new();
|
||
|
let window = winit::WindowBuilder::new().build(&event_loop).unwrap();
|
||
|
println!("{:#?}\nPrimary: {:#?}", window.get_available_monitors(), window.get_primary_monitor());
|
||
|
}
|