qmlglsrc: Handle HiDPI scaling
authorJan Schmidt <jan@centricular.com>
Tue, 20 Dec 2022 15:37:58 +0000 (02:37 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 21 Dec 2022 12:21:32 +0000 (12:21 +0000)
commite2cd5b1660658e71d5114cb749f2d21b7829f065
tree026082576fdc716e6edabbb967d45b64cc1a92cd
parentd3c85b4d19f57c99d503ce9abf68f5d963dd454c
qmlglsrc: Handle HiDPI scaling

When calculating the capture framebuffer size, include
any device scaling applied to the rendered framebuffer

Fixes only capturing part of the window when there is
a global scale factor.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3612>
subprojects/gst-plugins-good/ext/qt/qtwindow.cc