mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-26 23:21:30 +11:00
e2c84725de
* Format everything and add rustfmt to travis * Remove extern crate winit from examples and add force_multiline_blocks * Format the code properly * Fix inconsistent period in PULL_REQUEST_TEMPLATE.md * Only run rustfmt on nightly * Travis fixings
13 lines
264 B
Rust
13 lines
264 B
Rust
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);
|
|
}
|
|
}
|