From 2d45b74e02a1fcb3ecf2c8c2ec5f4b7e8a6f2428 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Thu, 20 Jan 2022 08:19:25 -0500 Subject: [PATCH] fix displayDensity() when run from the PDE (fixes #339) --- java/src/processing/mode/java/runner/Runner.java | 5 ++++- todo.txt | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/java/src/processing/mode/java/runner/Runner.java b/java/src/processing/mode/java/runner/Runner.java index d94ebc222..355ce65c2 100644 --- a/java/src/processing/mode/java/runner/Runner.java +++ b/java/src/processing/mode/java/runner/Runner.java @@ -351,12 +351,15 @@ public class Runner implements MessageConsumer { // No longer needed / doesn't seem to do anything differently //params.append("-Dcom.apple.mrj.application.apple.menu.about.name=" + // build.getSketchClassName()); - } else if (Platform.isWindows()) { + } + /* + if (Platform.isWindows()) { // No scaling of Swing on zoomed displays until some issues // regarding JEP 263 with rendering artifacts are sorted out. // https://github.com/processing/processing/issues/5753 params.append("-Dsun.java2d.uiScale=1"); } + */ // sketch.libraryPath might be "" // librariesClassPath will always have sep char prepended diff --git a/todo.txt b/todo.txt index 15e1c5930..99ae97675 100755 --- a/todo.txt +++ b/todo.txt @@ -31,6 +31,8 @@ X fix weird character offsets in text area X Resolve scaling issues with Windows X Editor cursor position offset to the right with fractional Windows scaling X https://github.com/processing/processing4/issues/342 +X displayDensity() is returning 1 when run from the PDE +X https://github.com/processing/processing4/issues/339 contribs X select entire line when doing Edit > Copy on an empty selection