Skip to content

Commit

Permalink
Fix with_scale_factor_override improperly setting `scale_factor_ove…
Browse files Browse the repository at this point in the history
…rride` (bevyengine#12321)

# Objective

Fixes bevyengine#12282.

## Solution

Use `set_scale_factor_override` in `with_scale_factor_override`.
  • Loading branch information
chompaa authored and spectria-limina committed Mar 9, 2024
1 parent 023cded commit 16ddd33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_window/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 16ddd33

Please sign in to comment.