Skip to content

Commit

Permalink
fix egui scale... reversed ffs..
Browse files Browse the repository at this point in the history
  • Loading branch information
caengen committed Aug 12, 2023
1 parent c386fcf commit e08037f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ pub fn window_resized(
let scale = SCREEN.x / window.width();
for mut projection in q.iter_mut() {
projection.scale = scale;
egui_settings.scale_factor = scale.into();
// wtf why is this reversed?
egui_settings.scale_factor = (window.width() / SCREEN.x).into();
}
}

Expand Down

0 comments on commit e08037f

Please sign in to comment.