1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 22:30:03 -04:00

Now embedded is stored on window, and fix crash when we set a window size to 0

This commit is contained in:
Konkitoman
2023-08-08 21:18:03 +03:00
parent 0198b6ae45
commit 1a7c4700fd
3 changed files with 70 additions and 154 deletions

View File

@@ -925,6 +925,8 @@ pub fn process_viewport_commands(
}
}
egui::ViewportCommand::InnerSize(width, height) => {
let width = width.max(1);
let height = height.max(1);
win.set_inner_size(PhysicalSize::new(width, height));
}
egui::ViewportCommand::Resize(top, bottom, right, left) => {