fix displayDensity() when run from the PDE (fixes #339)

This commit is contained in:
Ben Fry
2022-01-20 08:19:25 -05:00
parent ca352f3c1a
commit 2d45b74e02
2 changed files with 6 additions and 1 deletions

View File

@@ -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