mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
15 lines
285 B
Rust
15 lines
285 B
Rust
|
extern crate winit;
|
||
|
|
||
|
use winit::event_loop::EventLoop;
|
||
|
|
||
|
fn main() {
|
||
|
let event_loop = EventLoop::new();
|
||
|
let monitor = event_loop.primary_monitor();
|
||
|
|
||
|
println!("Listing available video modes:");
|
||
|
|
||
|
for mode in monitor.video_modes() {
|
||
|
println!("{:?}", mode);
|
||
|
}
|
||
|
}
|