From 6e6e99efddac113aa6616f25529d906bec582470 Mon Sep 17 00:00:00 2001 From: Antony Date: Tue, 5 Mar 2024 19:58:09 +0000 Subject: [PATCH] Fix `with_scale_factor_override` improperly setting `scale_factor_override` (#12321) # Objective Fixes #12282. ## Solution Use `set_scale_factor_override` in `with_scale_factor_override`. --- crates/bevy_window/src/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }