MCPcopy Index your code
hub / github.com/benfry/processing4 / getWindowsDPI

Method getWindowsDPI

core/src/processing/core/PApplet.java:10268–10279  ·  view source on GitHub ↗

Get the display scaling for Windows by calling out to a helper app. More here .

()

Source from the content-addressed store, hash-verified

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 /**

Callers 1

runSketchMethod · 0.95

Calls 4

findFensterMethod · 0.95
execMethod · 0.95
parseIntMethod · 0.95
joinMethod · 0.95

Tested by

no test coverage detected