File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments