mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-13 10:29:35 +01:00
Added Platform.getSystemDPI() API
This commit is contained in:
parent
af70053218
commit
d63162b5a1
@ -122,7 +122,7 @@ public class Theme {
|
||||
return scale;
|
||||
} catch (NumberFormatException ignore) {
|
||||
}
|
||||
return 100;
|
||||
return BaseNoGui.getPlatform().getSystemDPI() * 100 / 96;
|
||||
}
|
||||
|
||||
static public int scale(int size) {
|
||||
|
@ -333,4 +333,9 @@ public class Platform {
|
||||
public void fixSettingsLocation() throws Exception {
|
||||
//noop
|
||||
}
|
||||
|
||||
public int getSystemDPI() {
|
||||
return 96;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user