summaryrefslogtreecommitdiffstats
path: root/src/webenginequick/api/qquickwebengineview.cpp
diff options
context:
space:
mode:
authorDavid Edmundson <davidedmundson@kde.org>2024-06-19 10:37:45 +0100
committerDavid Edmundson <davidedmundson@kde.org>2024-07-02 15:04:30 +0100
commit21a9add47def34322b799683e1e1daff88dc4a06 (patch)
tree592a392535b678af1921616a6773985a5a6989f3 /src/webenginequick/api/qquickwebengineview.cpp
parent88452b99735d9404fa666f8b2d1b49e558e39708 (diff)
Use device pixel ratio of the window rather than the screen
Window device pixel ratio can differ from the screen depending on the platform. The window is the more authorative source with new events in Qt to support that. In Chromium the rendering is still based off a screen factor, but each view will have a completely independent set of screen variables, so we can adjust the screen to match our current view. Chromium itself also alters the screen scale factor on a per window basis for their own native Wayland backend or if recording a window. Fixes: QTBUG-113574 Pick-to: 6.8 Change-Id: I12231c826525a9d7b5e30eed10324f65fbf8c16f Reviewed-by: Moss Heim <moss.heim@qt.io> Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/webenginequick/api/qquickwebengineview.cpp')
0 files changed, 0 insertions, 0 deletions