diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-06-05 18:23:42 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-06-07 07:37:31 +0200 |
commit | 31f9f80ad38177605a3011b6fde70e3a8d536d47 (patch) | |
tree | eaebfb6e430f0c44e4552fa0efc7a721f62956c7 /tests/auto/selftests/benchlibcallgrind | |
parent | a85c336597a80ca96ea745830c0d9776b98c835c (diff) |
At QWindowPrivate::init time we initialize the cached device pixel ratio
from the target screen's device pixel ratio. Once the window is created
we then pick it up from the platform window, but at that point the
window may not yet be part of a UIWindow hierarchy with a UIScreen,
in which case the UIView reports a contentScale of 1. Once the window
is shown, the content scale starts reflecting the UISCreen.
To avoid the intermediate step of reflecting a DPR of 1, which also
triggers a warning from QGuiApplicationPrivate::processExposeEvent,
we reflect the window's QScreen DPR as long as it doesn't have an
associated UISCreen.
Fixes: QTBUG-125479
Pick-to: 6.8 6.7
Change-Id: I0e038e3c3f0bfff116e0910d24e85cc817c890d4
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'tests/auto/selftests/benchlibcallgrind')
0 files changed, 0 insertions, 0 deletions