Skip to content

Commit cf273e3

Browse files
committed
Fix glow window resize bug
1 parent 877e89f commit cf273e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

egui_glow/src/backend.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,10 @@ pub fn run(mut app: Box<dyn epi::App>, native_options: &epi::NativeOptions) -> !
359359
is_focused = new_focused;
360360
}
361361

362+
if let glutin::event::WindowEvent::Resized(physical_size) = event {
363+
gl_window.resize(physical_size);
364+
}
365+
362366
egui.on_event(&event);
363367

364368
gl_window.window().request_redraw(); // TODO: ask egui if the events warrants a repaint instead

0 commit comments

Comments
 (0)