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`.
This commit is contained in:
Antony 2024-03-05 19:58:09 +00:00 committed by François
parent 7f9ebfd603
commit 6e6e99efdd

View File

@ -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
}