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 /make/scripts/tests.sh | |
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 'make/scripts/tests.sh')
-rw-r--r-- | make/scripts/tests.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh index a3d43b633..2fb5d76b4 100644 --- a/make/scripts/tests.sh +++ b/make/scripts/tests.sh @@ -157,6 +157,8 @@ function jrun() { #D_ARGS="-Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all" #D_ARGS="-Dnativewindow.debug.SWT" D_ARGS="-Dnativewindow.debug.SWT -Dnewt.debug.Window -Djogl.debug.GLCanvas" + #D_ARGS="-Dnativewindow.debug.SWT -Dnewt.debug.Window -Djogl.debug.GLCanvas -Dswt.autoScale=200" + #export GDK_DPI_SCALE=2 #D_ARGS="-Dnativewindow.debug.SWT -Dnativewindow.debug.X11Util -Dnewt.debug.Window" #D_ARGS="-Dnativewindow.debug=all -Dnewt.debug.Window" #D_ARGS="-Djogl.debug=all -Dnativewindow.debug=all -Dnewt.debug=all -Djogamp.debug.Lock" |