Temporary workaround as we try to sort out 231 and 226 .
()
| 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() { |
no test coverage detected