Skip to content

Commit 8d7490a

Browse files
committed
digging into system dpi settings
1 parent 93749da commit 8d7490a

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

app/src/processing/app/Platform.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,4 +399,12 @@ static public String getenv(String variable) {
399399
static public int unsetenv(String variable) {
400400
return inst.unsetenv(variable);
401401
}
402+
403+
404+
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
405+
406+
407+
static public int getSystemDPI() {
408+
return inst.getSystemDPI();
409+
}
402410
}

app/src/processing/app/ui/PreferencesFrame.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,7 @@ public void run() {
730730
consoleFontSizeField.setSelectedItem(Preferences.getInteger("console.font.size"));
731731

732732
String zoomSel = Preferences.get("editor.zoom");
733+
System.out.println(Platform.getSystemDPI());
733734
int zoomIndex = Toolkit.zoomOptions.index(zoomSel);
734735
if (zoomIndex != -1) {
735736
zoomSelectionBox.setSelectedIndex(zoomIndex);

todo.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ X Contribution Manager does not show all libraries until filter cleared
1111
X https://github.com/processing/processing/issues/4840
1212
X fixed in 3.2.4
1313

14+
_ EventQueue problems with "could not find sketch size" message?
15+
_ https://github.com/processing/processing/issues/4893
1416

1517
_ "Sketch disappeared" infinite pop up dialogs
1618
_ https://github.com/processing/processing/pull/4808

0 commit comments

Comments
 (0)