From 309cd9fb55d57739f08147840165910f59c4b432 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 13 May 2023 06:25:41 +0200 Subject: HiDPI: TestGearsES2NEWT: Show MonitorDevice properties, validating pixelScale --- .../opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java index e6f1cdeaa..47afb8d19 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java @@ -33,6 +33,7 @@ import java.lang.reflect.InvocationTargetException; import com.jogamp.junit.util.JunitTracer; import com.jogamp.newt.Display; +import com.jogamp.newt.MonitorDevice; import com.jogamp.newt.NewtFactory; import com.jogamp.newt.Screen; import com.jogamp.newt.Window; @@ -351,6 +352,10 @@ public class TestGearsES2NEWT extends UITestCase { valReqSurfacePixelScale[0]+"x"+valReqSurfacePixelScale[1]+" (val) -> "+ hasSurfacePixelScale1[0]+"x"+hasSurfacePixelScale1[1]+" (has)"); NEWTDemoListener.setTitle(glWindow); + { + final MonitorDevice mm = glWindow.getMainMonitor(); + System.err.println("Monitor: "+mm); + } snap.setMakeSnapshot(); -- cgit v1.2.3