diff options
author | Sven Gothel <[email protected]> | 2020-01-16 01:37:21 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-01-16 01:37:21 +0100 |
commit | 78609202731252f0024e6330cc94c52b05c1d146 (patch) | |
tree | a83bec90b7b1fe634ad57e064cdbdea39b6e4c00 /doc/uml/jogl | |
parent | a0a2278721a1b0a8c5acc78d4d42b7cd7efeb47d (diff) |
Bug 1422: Use own deviceZoomScaleUp(..) disregarding higher-toolkit's compensation like 'DPIUtil.useCairoAutoScale()'
We can't use DPIUtil's 'autoScaleUp(..)' method on non-native DPI scaling platforms
as it uses a scale-factor of 1f if the higher toolkit compensates, i.e. 'DPIUtil.useCairoAutoScale()'.
Since NEWT uses X11 and GDI directly, which are not DPI scale-aware,
we have to drop the semnatics of 'DPIUtil.useCairoAutoScale()'
and merely use the actual 'deviceZoom'.
This was proposed by Marcel Au in the first place.
At least I understand these semantics by now.
+++
Additionally NewtCanvasSWT.SWTNativeWindow needs to return the 'deviceZoomScaleUp(..)'
values for returning its size in window- and pixel-units (surface).
Diffstat (limited to 'doc/uml/jogl')
0 files changed, 0 insertions, 0 deletions