Login  Register

JOGL broken with JRE>8 and Windows window-scaling

Posted by nyxcode on Aug 16, 2018; 4:55pm
URL: https://forum.jogamp.org/JOGL-broken-with-JRE-8-and-Windows-window-scaling-tp4039122.html

I'm just learning OpenGL using JOGL and, after dozens of hours of debugging, I think I found a bug..
When using the window scaling feature of windows (usefull for small high-resolution screens, laptops, ..) and Java 9 or 10 (Java 8 works fine though) the AWT Frame scales (when using 125% scaling a 500x500 Frame will be 625x625) but the GLCanvas doesnt.

Java 8, everything works as expected: https://prnt.sc/kjf9fp
Java 10, the window is 25% larger and has a nasty black border at the right and the top: https://prnt.sc/kjf9zq

Is this a known bug? Does anyone know of a workaround?