MCPcopy Create free account
hub / github.com/benfry/processing4 / handleCrustyDisplay

Method handleCrustyDisplay

app/src/processing/app/Base.java:380–397  ·  view source on GitHub ↗

Temporary workaround as we try to sort out 231 and 226 .

()

Source from the content-addressed store, hash-verified

378 * and <a href="https://github.com/processing/processing4/issues/226">226</a>.
379 */
380 static private void handleCrustyDisplay() {
381 /*
382 System.out.println("retina is " + Toolkit.isRetina());
383 System.out.println("system zoom " + Platform.getSystemZoom());
384 System.out.println("java2d param is " + System.getProperty("sun.java2d.uiScale.enabled"));
385 System.out.println("toolkit res is " + java.awt.Toolkit.getDefaultToolkit().getScreenResolution());
386 */
387 if (Platform.isWindows()) { // only an issue on Windows
388 if (!Toolkit.isRetina() && !Splash.getDisableHiDPI()) {
389 int res = java.awt.Toolkit.getDefaultToolkit().getScreenResolution();
390 if (res % 96 != 0) {
391 // fractional dpi scaling on a low-res screen
392 System.out.println("If the editor cursor is in the wrong place or the interface is blocky or fuzzy,");
393 System.out.println("open Preferences and select the “Disable HiDPI Scaling” option to fix it.");
394 }
395 }
396 }
397 }
398
399
400 static private void handleTempCleaning() {

Callers 1

createAndShowGUIMethod · 0.95

Calls 4

isWindowsMethod · 0.95
isRetinaMethod · 0.95
getDisableHiDPIMethod · 0.95
printlnMethod · 0.45

Tested by

no test coverage detected