diff --git a/crates/bevy_window/src/window.rs b/crates/bevy_window/src/window.rs index 31fb061b61..1d08f68d77 100644 --- a/crates/bevy_window/src/window.rs +++ b/crates/bevy_window/src/window.rs @@ -648,7 +648,7 @@ impl WindowResolution { /// Builder method for adding a scale factor override to the resolution. pub fn with_scale_factor_override(mut self, scale_factor_override: f32) -> Self { - self.scale_factor_override = Some(scale_factor_override); + self.set_scale_factor_override(Some(scale_factor_override)); self }