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 GitHub
parent fea6f9d915
commit ba9d1eff41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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