Reply – Re: JOGL broken with JRE>8 and Windows window-scaling
Your Name
Subject
Message
or Cancel
In Reply To
Re: JOGL broken with JRE>8 and Windows window-scaling
— by Marcel Marcel
Hello Martin,

which canvas do you use. I was able to workaround the scaling issues (OpenJDK 12) on NewtCanvasSWT by introduce an SWT scaling.

I also patched the SWT_AWT class for Windows introducing a wrong layout, see (only 200% but not 150% works in SWT):

https://bugs.eclipse.org/bugs/show_bug.cgi?id=545265

You might also play with the following java vm arg settings to scale Swing/Awt (AWT has still some issues):

-Dsun.java2d.uiScale=2.0

see (in one answer):

https://superuser.com/questions/988379/how-do-i-run-java-apps-upscaled-on-a-high-dpi-display

It might be that the GLCanvas (client area) must be scaled, too, to make an appropriate layout, see:

https://github.com/sgothel/jogl/blob/master/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java

As afore mentioned on SWT I did this with the Dpi API: DPIUtil.autoScaleUp(getClientArea());

which I thin only allows 200%, 300% settings so a zoom factor would be more appropriate.