mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Merge branch 'master' of https://github.com/emilk/egui into multiples_viewports
This commit is contained in:
@@ -134,6 +134,9 @@ pub fn window_builder<E>(
|
||||
|
||||
window_builder = window_builder.with_drag_and_drop(*drag_and_drop_support);
|
||||
|
||||
// Always use the default window size / position on iOS. Trying to restore the previous position
|
||||
// causes the window to be shown too small.
|
||||
#[cfg(not(target_os = "ios"))]
|
||||
let inner_size_points = if let Some(mut window_settings) = window_settings {
|
||||
// Restore pos/size from previous session
|
||||
|
||||
@@ -159,6 +162,7 @@ pub fn window_builder<E>(
|
||||
*initial_window_size
|
||||
};
|
||||
|
||||
#[cfg(not(target_os = "ios"))]
|
||||
if *centered {
|
||||
if let Some(monitor) = event_loop.available_monitors().next() {
|
||||
let monitor_size = monitor.size().to_logical::<f64>(monitor.scale_factor());
|
||||
|
||||
Reference in New Issue
Block a user