qt5base-lts/src
Morten Sørvig d38118c808 Make rhiFlush() support custom source DPR
The rhiFlush() implementation currently assumes that
QWindow->devicePixelRatio() is the correct scale factor for
transforming device independent window geometry to source geometry.

However, this assumption does not hold if/when we add support
for drawing to a rounded-up DPR, with a downscale later in
the rhiFlush implementation.

Fix this by adding a sourceDevicePixelRatio argument to rhiFlush(),
which is set to either QWindow::devicePixelRatio() or
QWidget::devicePixelRatio(), depending on from where it is used.

Change deviceRect() and friends in qbackingstoredefualtcompositor.cpp
to be scale*() functions instead which take a scale factor instead
of a QWindow. Update call sites to use srouceDevicePixelRatio
where that makes sense.

Pick-to: 6.4
Change-Id: Idb7b1e2f36816a201e00f0defe100d2dc079cb17
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
2022-06-14 21:16:35 +02:00
..
3rdparty Update qt_attribution for harfbuzz 2022-05-24 15:05:44 +02:00
android Android 13: Fix warnings on starting an application 2022-06-13 13:37:36 +00:00
concurrent QtConcurrent: prevent conversion of ReduceOption to initial value 2022-05-20 17:11:15 +02:00
corelib Revert "qxp::function_ref: drop use of q23::invoke_r" 2022-06-14 01:30:48 +00:00
dbus Remove more unused qreadwritelock.h includes 2022-05-17 18:49:31 +02:00
entrypoint Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
gui Make rhiFlush() support custom source DPR 2022-06-14 21:16:35 +02:00
network Unify QSslServer from QtWebSockets and QtHttpServer into QtNetwork 2022-06-04 02:22:56 +02:00
opengl Make rhiFlush() support custom source DPR 2022-06-14 21:16:35 +02:00
openglwidgets QOpenGLWidget: Fix a typo in the public documentation 2022-05-27 22:47:28 +01:00
platformsupport Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
plugins Make rhiFlush() support custom source DPR 2022-06-14 21:16:35 +02:00
printsupport Move file-static const arrays out of qprint_p.h file 2022-06-04 00:29:50 +02:00
sql Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
testlib FatalSignalHandler: print the signal name on crash 2022-06-08 20:39:18 +00:00
tools androiddeployqt: use QFile::exists instead of QDir().exists 2022-06-10 21:10:34 +02:00
widgets Make rhiFlush() support custom source DPR 2022-06-14 21:16:35 +02:00
xml Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
CMakeLists.txt Make it possible to disable the PrintSupport module 2021-02-09 09:17:21 +01:00