Login  Register

Re: DPI scaling not working

Posted by gbburkhardt on Jan 15, 2024; 1:42pm
URL: https://forum.jogamp.org/DPI-scaling-not-working-tp4042206p4043249.html

That won't work for com.jogamp.opengl.awt.GLCanvas.setSurfaceScale, which does nothing except for returning 'false'.  Note that 'canSetSurfaceScale' returns false.  

See commit 900c35c6a.  Mr. Gothel decided not to support this feature for AWT.

'setSurfaceScale' does work for the NEWT implementation of GLCanvas, as it does for some others.  Better to switch to NEWT.  And it shouldn't be too hard to change your application to use the changes for DPI scaling for AWT in the current code base.