mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-11-16 15:27:46 +00:00
gupax: fix Frame
resize
This commit is contained in:
parent
039aed1679
commit
ca881539f1
1 changed files with 2 additions and 1 deletions
|
@ -259,7 +259,8 @@ impl crate::disk::Gupax {
|
|||
ui.separator();
|
||||
if ui.add_sized([width, height], SelectableLabel::new(self.ratio == None, "No lock")).on_hover_text(GUPAX_NO_LOCK).clicked() { self.ratio = None; }
|
||||
if ui.add_sized([width, height], Button::new("Set")).on_hover_text(GUPAX_SET).clicked() {
|
||||
frame.set_window_size(Vec2::new(self.selected_width as f32, self.selected_height as f32));
|
||||
let size = Vec2::new(self.selected_width as f32, self.selected_height as f32);
|
||||
ui.ctx().send_viewport_cmd(egui::viewport::ViewportCommand::InnerSize(size));
|
||||
}
|
||||
})});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue