mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-26 07:11:31 +11:00
17 lines
336 B
Rust
17 lines
336 B
Rust
|
extern crate winit;
|
||
|
|
||
|
fn main() {
|
||
|
let window = winit::WindowBuilder::new()
|
||
|
.with_min_dimensions(400, 200)
|
||
|
.with_max_dimensions(800, 400)
|
||
|
.build()
|
||
|
.unwrap();
|
||
|
|
||
|
for event in window.wait_events() {
|
||
|
match event {
|
||
|
winit::Event::Closed => break,
|
||
|
_ => ()
|
||
|
}
|
||
|
}
|
||
|
}
|