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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user