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

Windows 10 Scaling #83

Closed
someguy233 opened this issue Nov 1, 2016 · 5 comments
Closed

Windows 10 Scaling #83

someguy233 opened this issue Nov 1, 2016 · 5 comments

Comments

@someguy233
Copy link

someguy233 commented Nov 1, 2016

My libgdx game gets stretched larger when my desktop scaling is set to 125% in Windows 10. Happens when I set the game to fullscreen.

Running the JAR directly maintains the correct size.

@code-disaster
Copy link
Member

I suspect the executable not setting "DPI awareness" (in code or by application manifest) to be the cause for this. Can you try to replace your packr executable with the ones I pushed to this branch? I'd like to verify if this actually fixes the issue before I merge it to master.

@code-disaster
Copy link
Member

f23a3fb is aiming to fix that. Additional tests/feedback highly appreciated.

@JoelOtter
Copy link

Hi @code-disaster - I'm still seeing this issue with the latest version of packr (2.0.0-SNAPSHOT, I believe). I'm using LWJGL2.

Running the JAR directly works fine, as does going to properties on the executable and checking 'override high DPI scaling behavior'.

I'm running packr on macOS, if that makes any difference.

Thanks! Love this tool.

@someguy233
Copy link
Author

Same here, on windows 10.

It works fine with LWJGL3.

But if you want to use LWJGL2, you can add the following to vm args in config.json

-Dsun.java2d.dpiaware=true

@JoelOtter
Copy link

Thanks @someguy233 - this fixed the problem for me!

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

No branches or pull requests

3 participants