Get the display scaling for Windows by calling out to a helper app. More here .
()
| 10266 | * More <a href="https://github.com/processing/processing4/tree/master/build/windows/fenster">here</a>. |
| 10267 | */ |
| 10268 | static private int getWindowsDPI() { |
| 10269 | String fensterPath = findFenster(); |
| 10270 | if (fensterPath != null) { |
| 10271 | StringList stdout = new StringList(); |
| 10272 | StringList stderr = new StringList(); |
| 10273 | int result = exec(stdout, stderr, fensterPath); |
| 10274 | if (result == 0) { |
| 10275 | return parseInt(stdout.join(""), 0); |
| 10276 | } |
| 10277 | } |
| 10278 | return 0; |
| 10279 | } |
| 10280 | |
| 10281 | |
| 10282 | /** |
no test coverage detected