disable alternate method for display resolution check

This commit is contained in:
Ben Fry
2023-02-18 15:49:54 -05:00
parent 4c2b834e0b
commit e766a11063
@@ -495,12 +495,18 @@ public class Runner implements MessageConsumer {
params.append(PApplet.ARGS_DENSITY + "=2");
}
*/
// Using this causes behavior to be different between exported
// applications and when run from the PDE. Turning it off for 4.2
// so there's a path for debugging all of this. [fry 230218]
/*
if (Platform.isWindows()) {
// Pass the DPI setting to the app to avoid using the helper app.
int dpi = Toolkit.getDefaultToolkit().getScreenResolution();
int uiScale = PApplet.constrain(dpi / 96, 1, 2);
params.append(PApplet.ARGS_UI_SCALE + "=" + uiScale);
}
*/
params.append(build.getSketchClassName());
}