aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 0cd1e674..5c52dcda 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -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);
}