Created
June 3, 2017 08:56
-
-
Save LPGhatguy/8d12e3a9e0fad838a881f200e3687c6c to your computer and use it in GitHub Desktop.
Start program, attempt to move window, observe that window resizes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate winit; | |
fn main() { | |
let events_loop = winit::EventsLoop::new(); | |
let window = winit::WindowBuilder::new() | |
.with_dimensions(200, 200) | |
.with_max_dimensions(200, 200) | |
.build(&events_loop) | |
.unwrap(); | |
events_loop.run_forever(|event| { | |
match event { | |
winit::Event::WindowEvent { event: winit::WindowEvent::Closed, .. } => { | |
events_loop.interrupt(); | |
}, | |
_ => () | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment