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