JAL-3416 Turn off (partial) flatlaf scaling for HiDPI in Linux and Java 8 - Some...
authorBen Soares <b.soares@dundee.ac.uk>
Mon, 20 Feb 2023 23:04:09 +0000 (23:04 +0000)
committerBen Soares <b.soares@dundee.ac.uk>
Mon, 20 Feb 2023 23:04:09 +0000 (23:04 +0000)
src/jalview/bin/Jalview.java

index cb078b8..c6aaaef 100755 (executable)
@@ -324,6 +324,11 @@ public class Jalview
       System.out.println("Launcher version: " + val);
     }
 
+    if (Platform.isLinux() && LaunchUtils.getJavaVersion() < 11)
+    {
+      System.setProperty("flatlaf.uiScale", "1");
+    }
+
     // report Jalview version
     Cache.loadBuildProperties(true);