mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 19:05:34 +01:00
digging into system dpi settings
This commit is contained in:
@@ -399,4 +399,12 @@ public class Platform {
|
||||
static public int unsetenv(String variable) {
|
||||
return inst.unsetenv(variable);
|
||||
}
|
||||
|
||||
|
||||
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||
|
||||
|
||||
static public int getSystemDPI() {
|
||||
return inst.getSystemDPI();
|
||||
}
|
||||
}
|
||||
@@ -730,6 +730,7 @@ public class PreferencesFrame {
|
||||
consoleFontSizeField.setSelectedItem(Preferences.getInteger("console.font.size"));
|
||||
|
||||
String zoomSel = Preferences.get("editor.zoom");
|
||||
System.out.println(Platform.getSystemDPI());
|
||||
int zoomIndex = Toolkit.zoomOptions.index(zoomSel);
|
||||
if (zoomIndex != -1) {
|
||||
zoomSelectionBox.setSelectedIndex(zoomIndex);
|
||||
|
||||
2
todo.txt
2
todo.txt
@@ -11,6 +11,8 @@ X Contribution Manager does not show all libraries until filter cleared
|
||||
X https://github.com/processing/processing/issues/4840
|
||||
X fixed in 3.2.4
|
||||
|
||||
_ EventQueue problems with "could not find sketch size" message?
|
||||
_ https://github.com/processing/processing/issues/4893
|
||||
|
||||
_ "Sketch disappeared" infinite pop up dialogs
|
||||
_ https://github.com/processing/processing/pull/4808
|
||||
|
||||
Reference in New Issue
Block a user