mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Resize buffer on window resize
This commit is contained in:
parent
4f72fb8e99
commit
8149767f73
1 changed files with 4 additions and 1 deletions
|
@ -460,9 +460,12 @@ impl Window {
|
|||
self.event_queue.borrow_mut().push(WindowEvent::Quit);
|
||||
}
|
||||
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);
|
||||
}
|
||||
Event::Awakened => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue