mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
eframe: Improve window centering (#2651)
* Create the winit::Window in one unified place * Fix wrong unit of initial_window_pos * Improve centering
This commit is contained in:
@@ -42,6 +42,10 @@ impl WindowSettings {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn inner_size_points(&self) -> Option<egui::Vec2> {
|
||||
self.inner_size_points
|
||||
}
|
||||
|
||||
pub fn initialize_window(
|
||||
&self,
|
||||
mut window: winit::window::WindowBuilder,
|
||||
|
||||
Reference in New Issue
Block a user