Skip to content

round layout position in resolve_positions#265

Draft
msparkles wants to merge 1 commit intoSecondHalfGames:mainfrom
msparkles:fix/round_layout_pos
Draft

round layout position in resolve_positions#265
msparkles wants to merge 1 commit intoSecondHalfGames:mainfrom
msparkles:fix/round_layout_pos

Conversation

@msparkles
Copy link
Copy Markdown
Contributor

@msparkles msparkles commented Jan 15, 2026

sometimes, a widget can be in a position that's not aligned with the pixel grid, and this causes ugly renders like these when MSAA is enabled:

(figure 1: normal render)

image

(figure 2: problematic render)

image

we'd like to stop this from happening, this looks Bad.

the code here seems to work, though it might not work well on HiDPI situation? there needs to be more testing. in our own project it seems to work (we've not tested HiDPI) but maybe there's some case we're not catching.

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.

1 participant