diff --git a/src/main.rs b/src/main.rs index 1984e93..dae57b4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 ())); - 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 scaled_width = available.y * tex_size.x / tex_size.y; let scaled_height = available.x * tex_size.y / tex_size.x;