:paint: ui: fix the checkbox getting hidden
parent
ef2e803c43
commit
039518cde6
|
@ -216,7 +216,7 @@ impl eframe::App for App {
|
||||||
}
|
}
|
||||||
|
|
||||||
ui.heading (format! ("{0}, {1}, {2}", self.camera_fps, self.gui_fps, self.latency.as_millis ()));
|
ui.heading (format! ("{0}, {1}, {2}", self.camera_fps, self.gui_fps, self.latency.as_millis ()));
|
||||||
let available = ui.available_size();
|
let available = ui.available_size() - egui::Vec2::new (0.0, 20.0);
|
||||||
let tex_size = egui::Vec2::new (texture.size()[0] as f32, texture.size()[1] as f32);
|
let tex_size = egui::Vec2::new (texture.size()[0] as f32, texture.size()[1] as f32);
|
||||||
let scaled_width = available.y * tex_size.x / tex_size.y;
|
let scaled_width = available.y * tex_size.x / tex_size.y;
|
||||||
let scaled_height = available.x * tex_size.y / tex_size.x;
|
let scaled_height = available.x * tex_size.y / tex_size.x;
|
||||||
|
|
Loading…
Reference in New Issue