diff --git a/crates/bevy_window/src/window.rs b/crates/bevy_window/src/window.rs index 2f476bca64..c241c9b713 100644 --- a/crates/bevy_window/src/window.rs +++ b/crates/bevy_window/src/window.rs @@ -673,7 +673,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 }