-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
utiLITI windows scaling issues #275
Comments
Thanks for reporting this! |
Sorry, can't test without having a 4k monitor at my disposal :/ anyone else? |
I can test builds for you but I currently don't have time to look into the source code or something like that |
Just to track this: WQHD (2560 x1440) works fine. |
Today we have been able to reproduce the issue on my laptop: |
Thanks for checking it out! We may already have a lead on this, but oddly this doesn't seem to happen on all hardware. |
Update: This issue is related to the installed/used JDK version. It works as expected for up until Java 8 (tested with |
Possibly related to HiDPI support, implemented with Java 9: see also: jfree/jfreechart#170 |
Starting with Java9, the implementation defines a default transformation for the JAVA 9:JAVA 8When rendering Shapes we overwrite the default litiengine/src/de/gurkenlabs/litiengine/graphics/ShapeRenderer.java Lines 73 to 76 in 0af1561
|
If I open utiLITI on my 4k monitor, the tiles of a map get scaled but the grid doesn't and weird rendering issues appear.
![standard behavior](https://user-images.githubusercontent.com/18028031/59946903-22a30a80-946c-11e9-9078-8ae820be7998.png)
A workaround to get it working is to let windows handle the scaling. This is done via the compatibility settings by selecting system as a scaling mode. The downside of this workaround is that the UI gets blurry.
The text was updated successfully, but these errors were encountered: