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:
parent
7f9ebfd603
commit
6e6e99efdd
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user