mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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
fea6f9d915
commit
ba9d1eff41
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue