summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/android/qandroidplatformwindow.cpp
diff options
context:
space:
mode:
authorMorten Sørvig <morten.sorvig@qt.io>2023-11-07 14:44:13 +0100
committerMorten Johan Sørvig <morten.sorvig@qt.io>2023-11-27 18:53:41 +0000
commit96d0f2af75aa069f2b6973a621b3bf6ebaafc9a5 (patch)
treefd045151db98b0a3cb44b2aa3f6a93b44a46c260 /src/plugins/platforms/android/qandroidplatformwindow.cpp
parentb3819d9cc200100bcf3fc30bcd3353c50cc73c4c (diff)
Fix off-by-one surface pixel size on Android
m_window->size() may have been rounded for devices with DPI which results in a fractional DPR (e.g. 650 DPI / 160 DPI = 3.5 DPR). In this case scaling by devicePixelRatio does not give the correct result. Instead, use QPlatformWindow geometry and DPR to determine the device size, without using the (possibly) rounded device independent window size. Fixes: QTBUG-87334 Pick-to: 6.6 6.5 6.2 Change-Id: I280236a06516cdb2a1a259fd0cfa8084c1ce7f46 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/plugins/platforms/android/qandroidplatformwindow.cpp')
0 files changed, 0 insertions, 0 deletions