Login  Register

Re: Jogl/Jogamp on Java 9

Posted by gouessej on Aug 07, 2017; 5:49pm
URL: https://forum.jogamp.org/Jogl-Jogamp-on-Java-9-tp4038012p4038106.html

Hi

You can disable HiDPI until you're ready to fully take it into account. When HiDPI is enabled, the surface dimension (in pixel units) isn't equal to the window dimension (in window units). Look at com.jogamp.nativewindow.NativeWindow and com.jogamp.nativewindow.NativeSurface. If you use getWidth() and getHeight() everywhere, you'll have to replace some calls by getSurfaceWidth() and getSurfaceHeight().
Julien Gouesse | Personal blog | Website