Skip to content

Commit c78f22a

Browse files
committed
opt to round up on scaling so that 175% does 2x on Windows
1 parent fa741e2 commit c78f22a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

core/src/processing/core/PApplet.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10307,13 +10307,16 @@ static public void runSketch(final String[] args,
1030710307
if (uiScale == 0) {
1030810308
int dpi = getWindowsDPI();
1030910309
if (dpi != 0) {
10310-
uiScale = constrain(dpi / 96, 1, 2);
10310+
//uiScale = constrain(dpi / 96, 1, 2);
10311+
// If larger than 150% set scale to 2. Using scale 1 at 175% feels
10312+
// reeaally small. 150% is more of a tossup; it could also use 2.
10313+
uiScale = (dpi > 144) ? 2 : 1;
1031110314
}
1031210315
}
1031310316
if (uiScale != 0) {
1031410317
System.setProperty("sun.java2d.uiScale", String.valueOf(uiScale));
10315-
} else {
10316-
System.err.println("Could not identify Windows DPI, not setting sun.java2d.uiScale");
10318+
//} else {
10319+
//System.err.println("Could not identify Windows DPI, not setting sun.java2d.uiScale");
1031710320
}
1031810321
}
1031910322

0 commit comments

Comments
 (0)