1
0
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:
Cristian Maglie 2016-11-03 16:29:41 +02:00
parent af70053218
commit d63162b5a1
2 changed files with 6 additions and 1 deletions

View File

@ -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) {

View File

@ -333,4 +333,9 @@ public class Platform {
public void fixSettingsLocation() throws Exception {
//noop
}
public int getSystemDPI() {
return 96;
}
}