[vlc-commits] [Git][videolan/vlc][master] qt: use `QQuickWindow::effectiveDevicePixelRatio()` in RoundImage
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Sep 6 14:01:25 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
9fda4301 by Fatih Uzunoglu at 2024-09-06T13:42:09+00:00
qt: use `QQuickWindow::effectiveDevicePixelRatio()` in RoundImage
- - - - -
1 changed file:
- modules/gui/qt/widgets/native/roundimage.cpp
Changes:
=====================================
modules/gui/qt/widgets/native/roundimage.cpp
=====================================
@@ -309,7 +309,7 @@ RoundImage::RoundImage(QQuickItem *parent) : QQuickItem {parent}
connect(this, &QQuickItem::windowChanged, this, [this](const QQuickWindow* const window) {
if (window)
- setDPR(window->devicePixelRatio());
+ setDPR(window->effectiveDevicePixelRatio());
else if (Q_LIKELY(qGuiApp))
setDPR(qGuiApp->devicePixelRatio());
});
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9fda43018df93eb635aa7619555d370d90577bef
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9fda43018df93eb635aa7619555d370d90577bef
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list