Resize buffer on window resize

This commit is contained in:
Paul Rouget 2018-02-22 06:42:47 +01:00
parent 4f72fb8e99
commit 8149767f73

View file

@ -460,9 +460,12 @@ impl Window {
self.event_queue.borrow_mut().push(WindowEvent::Quit); self.event_queue.borrow_mut().push(WindowEvent::Quit);
} }
Event::WindowEvent { Event::WindowEvent {
event: glutin::WindowEvent::Resized(..), event: glutin::WindowEvent::Resized(x, y),
.. ..
} => { } => {
if let WindowKind::Window(ref window, _) = self.kind {
window.resize(x, y);
}
self.event_queue.borrow_mut().push(WindowEvent::Resize); self.event_queue.borrow_mut().push(WindowEvent::Resize);
} }
Event::Awakened => { Event::Awakened => {