Skip to content

Conversation

@jangler
Copy link
Contributor

@jangler jangler commented Aug 26, 2025

Fixes #422

Comment on lines +807 to +808
let fb_width = ((window_width * self.content_scale).round() as i32).max(1);
let fb_height = ((window_height * self.content_scale).round() as i32).max(1);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

round_ties_even is a bit less biased and faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug:float calculation cause deviation

2 participants