MCPcopy
hub / github.com/arduino/Arduino / getScale

Method getScale

app/src/processing/app/Theme.java:415–423  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

413 }
414
415 static public int getScale() {
416 try {
417 int scale = PreferencesData.getInteger("gui.scale", -1);
418 if (scale != -1)
419 return scale;
420 } catch (NumberFormatException ignore) {
421 }
422 return BaseNoGui.getPlatform().getSystemDPI() * 100 / 96;
423 }
424
425 static public int scale(int size) {
426 return size * getScale() / 100;

Callers 5

makeNewDescriptionMethod · 0.95
makeNewDescriptionMethod · 0.95
makeNewDescriptionMethod · 0.95
scaleMethod · 0.95
getLibImageMethod · 0.95

Calls 3

getIntegerMethod · 0.95
getPlatformMethod · 0.95
getSystemDPIMethod · 0.45

Tested by

no test coverage detected