winit-sonoma-fix/examples/video_modes.rs

13 lines
264 B
Rust
Raw Normal View History

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);
}
}