From 455b0df12d9bf78c502f5546aee12a287cc13652 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Tue, 2 Aug 2022 11:09:30 +0200 Subject: fix double display scaling in pdf preview, cf. #106 --- pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pdf-over-gui/src/main/java') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java index c41b59de..77e71581 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java @@ -45,7 +45,6 @@ public class Main { * @throws IOException */ public static void main(String[] args) throws IOException { - try { log.info("This is " + Constants.APP_NAME_VERSION + ", " + "running on " + System.getProperty("os.arch") + " " + System.getProperty("os.name") + ", " + @@ -56,12 +55,15 @@ public class Main { configDir.mkdir(); } - // force loading the IAIK JCE + // force loading the IAIK JCE (cf. #95) IAIK.addAsProvider(); - // force keystore type (Adoptium JRE 17 still ships with JKS) + // force keystore type (Adoptium JRE 17 still ships with JKS, cf. #95) System.setProperty("javax.net.ssl.trustStoreType", "jks"); + // disable display scaling for AWT components embedded in SWT (cf. #106) + System.setProperty("sun.java2d.uiScale", "1"); + log.debug("Starting stateMachine ..."); (new StateMachine(args)).start(); log.debug("Ended stateMachine ..."); -- cgit v1.2.3