Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX issues when using HI-DPI mode. #15

Open
mdsitton opened this issue Jul 20, 2015 · 1 comment
Open

OSX issues when using HI-DPI mode. #15

mdsitton opened this issue Jul 20, 2015 · 1 comment

Comments

@mdsitton
Copy link
Member

So by default (as the code currently is) for HI-DPI display modes on OSX the code renders properly, but at the resolution targeted by the hi-dpi mode. So a 200x200 window on 1280x800 high dpi would show as 200x200, but each pixel would be rendered on 4 pixels, with no extra data so it looks pixelated.

When the high dpi flag is added to the sdl2 window code the following happens
https://dl.dropboxusercontent.com/u/37405488/hidpimode.png

The item attached to the cursor is no longer following properly(need to scale the mouse coords i think). And the rendering is way off.

@mdsitton
Copy link
Member Author

Here are some other oddities
If i move the window, everything adapts to the highdpi mode and just works o.0?
https://dl.dropboxusercontent.com/u/37405488/hidpiworking.png

here is regular no highdpi for comparison:
https://dl.dropboxusercontent.com/u/37405488/hidpino.png

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

No branches or pull requests

1 participant