-
-
Notifications
You must be signed in to change notification settings - Fork 477
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
Window example doesnt render quite right when i move it from a hidpi screen to 1x, or vice versa #1068
Comments
IIRC the example rendering code doesn't handle resizes at all. The triangle verts are never transformed, so they'll be in the same place after resizing. ( |
@francesca64 When i resize the screen with my above code, the scene skews with the new size. So the triangle stretches, which is what i expect. Though im not sure why the scene is offset upon moving it to the other monitor, and how to handle that. |
Fixed in #1435. |
Tested on macos high sierra, dont have a hidpi windows setup to test i'm afraid.
When I run the example, it appears on my main screen (the laptop hidpi 2), and looks like:
When i drag it to the second monitor, which is a standard 24" 1080p. It gets zoomed in sorta.
Once i drag the window corner to resize it, it fixes itself. I tried updating the example to handle the hidpi change, but it hasnt improved.
In the terminal, this is the output i see:
The text was updated successfully, but these errors were encountered: