Re: GLcanvas vs NEWT on Hi DPI Screens

Posted by Sven Gothel on
URL: https://forum.jogamp.org/GLcanvas-vs-NEWT-on-Hi-DPI-Screens-tp4041191p4042128.html

https://jogamp.org/bugzilla/show_bug.cgi?id=1374#c10
NEWT:

On the MacOS and iOS,
window units are used for the native UI component's position and size.
Here the surface size in pixel units = window-units-size * pixelScale.
This has been implemented already.

On Windows-GDI and X11,
pixel units are used for the native UI component's position and size.
Here we need to convert NEWT's window position and size
to and from the pixel-size, i.e. window units = pixel-units / pixelScale.

Hence all NEWT window-unit position and size values must
be appropriately converted from/to window-units on Windows and X11.

WIP ..
.. bottom line, I am working integrating pixel-scale semantics into NEWT
for all non MacOS/iOS platforms.