Skip to content

Account for framebuffer scale in world canvas size - #7

Open
ShinraiYeen wants to merge 1 commit into
ShweetsStuff:masterfrom
ShinraiYeen:bugfix/fix-framebuffer-scale
Open

Account for framebuffer scale in world canvas size#7
ShinraiYeen wants to merge 1 commit into
ShweetsStuff:masterfrom
ShinraiYeen:bugfix/fix-framebuffer-scale

Conversation

@ShinraiYeen

Copy link
Copy Markdown

This ensures that the size set for the world model is properly scaled with the reported framebuffer scale when using Hi-DPI/Retina displays (or any case where the logical pixel size does not match the physical pixel size). Without this, the world model is rendered at only a fraction of the window's size and the cursor's position is not displayed properly.

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