jdmonin / JSettlers2

Java Settlers project home, downloads, and GPLv3 source code. To download the latest version as a JAR, see https://github.com/jdmonin/JSettlers2/releases/latest .
http://nand.net/jsettlers/
GNU General Public License v3.0
157 stars 63 forks source link

client: High DPI vs windows 10 JRE 8 #58

Closed jdmonin closed 5 years ago

jdmonin commented 5 years ago

JSettlers' main and game windows appear very small on Windows 10 high-DPI displays under java 8 (JRE 8).

The high-DPI problem is greatly reduced on java 9 and above, but there isn't a JRE download for 9 or higher; java.com offers java 8 as the latest download. We can't expect users to find, download, and use a newer JDK. And at this time JSettlers is distributed as a platform-independent JAR, not a binary made by jlink.

So, it would be good to detect and scale the GUI when running on java 8.

jdmonin commented 5 years ago

Implemented in commits 2a73627-2860002 and tested (although not in newest Windows 10). If any further high-DPI problems come up, I can reopen this or make a new issue.

jdmonin commented 5 years ago

Tested OK in windows 10.