diff --git a/src/window/window_wrapper/mod.rs b/src/window/window_wrapper/mod.rs index defa96e..0dd3e6b 100644 --- a/src/window/window_wrapper/mod.rs +++ b/src/window/window_wrapper/mod.rs @@ -175,8 +175,8 @@ impl GlutinWindowWrapper { return; } - if self.saved_grid_size.is_none() && !window.is_maximized() { - let settings = SETTINGS.get::(); + let settings = SETTINGS.get::(); + if self.saved_grid_size.is_none() && !settings.maximized { window.set_inner_size( self.renderer .grid_renderer @@ -185,7 +185,7 @@ impl GlutinWindowWrapper { self.saved_grid_size = Some(settings.geometry); // Font change at startup is ignored, so grid size (and startup screen) could be preserved. // But only when --maximize is not used. With maximized window we should redraw grid. - font_changed = settings.maximized; + font_changed = false; } let new_size = window.inner_size();