summaryrefslogtreecommitdiffstats
path: root/src/newt/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-03-28 02:37:47 +0200
committerSven Gothel <[email protected]>2023-03-28 02:37:47 +0200
commitc9f1d8bb7a564100c8a1084bc8d914f2f4e5e3d2 (patch)
tree8f1a66cb7dc887c0e1447d72c2526b2c84c4e364 /src/newt/classes
parent9b91a24ee6f383ca53556c466d84baf56f16940b (diff)
Graph FontScale: Simplify names, fix API doc and add unit test
Diffstat (limited to 'src/newt/classes')
-rw-r--r--src/newt/classes/com/jogamp/newt/opengl/util/NEWTDemoListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newt/classes/com/jogamp/newt/opengl/util/NEWTDemoListener.java b/src/newt/classes/com/jogamp/newt/opengl/util/NEWTDemoListener.java
index 563c09474..3960f6eb3 100644
--- a/src/newt/classes/com/jogamp/newt/opengl/util/NEWTDemoListener.java
+++ b/src/newt/classes/com/jogamp/newt/opengl/util/NEWTDemoListener.java
@@ -475,7 +475,7 @@ public class NEWTDemoListener extends WindowAdapter implements KeyListener, Mous
final CapabilitiesImmutable reqCaps = win.getRequestedCapabilities();
final CapabilitiesImmutable caps = null != chosenCaps ? chosenCaps : reqCaps;
final String capsA = caps.isBackgroundOpaque() ? "opaque" : "transl";
- final float[] sDPI = FontScale.perMMToPerInch( win.getPixelsPerMM(new float[2]) );
+ final float[] sDPI = FontScale.ppmmToPPI( win.getPixelsPerMM(new float[2]) );
final float[] minSurfacePixelScale = win.getMinimumSurfaceScale(new float[2]);
final float[] maxSurfacePixelScale = win.getMaximumSurfaceScale(new float[2]);
final float[] reqSurfacePixelScale = win.getRequestedSurfaceScale(new float[2]);