Fix resizing on macOS

terminal.resize was not being called. Additionally, it was being called
too much on other platforms (resize events were completely coalesced).
This commit is contained in:
Joe Wilm 2016-07-04 09:43:41 -07:00
parent 6be23659ef
commit 5c79c117a2
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,6 @@ fn main() {
}
},
glutin::Event::Resized(w, h) => {
terminal.resize(w as f32, h as f32);
new_size = Some((w, h));
},
glutin::Event::KeyboardInput(state, _code, key) => {
@ -267,6 +266,7 @@ fn main() {
// Receive any resize events; only call gl::Viewport on last
// available
if let Some((w, h)) = new_size.take() {
terminal.resize(w as f32, h as f32);
renderer.resize(w as i32, h as i32);
}