Login  Register

Pixel scale change notification

Posted by Martin on Apr 19, 2021; 8:23pm
URL: https://forum.jogamp.org/Pixel-scale-change-notification-tp4041118.html

Hi,

I am willing to adapt font size of a chart according to pixel scale (text look tiny when running on Retina or HiDPI).

In the case the user moves the app from an HiDPI main screen to a NON-HiDPI secondary screen, the pixel scale for rendering changes (as soon as one pixel of the app goes to a non HiDPI screen, the entire chart becomes non HiDPI - cooool!).

I wish I could add a listener somewhere to get notified of this change to avoid asking to the GLAutoDrawable its values in a loop/thread.

Is there any way to do it?

Thanks