summaryrefslogtreecommitdiffhomepage
path: root/video/video-widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'video/video-widget.cpp')
-rw-r--r--video/video-widget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/video/video-widget.cpp b/video/video-widget.cpp
index 9100e0ea..8262a380 100644
--- a/video/video-widget.cpp
+++ b/video/video-widget.cpp
@@ -11,9 +11,8 @@
void video_widget::init_image_nolock()
{
- double dpr = devicePixelRatioF();
- size_.store({ iround(width() * dpr), iround(height() * dpr) },
- std::memory_order_release);
+ double dpi = screen_dpi();
+ size_.store({ iround(width() * dpi), iround(height() * dpi) }, std::memory_order_release);
}
video_widget::video_widget(QWidget* parent) : QWidget(parent)
@@ -85,3 +84,4 @@ void video_widget::set_fresh(bool x)
{
fresh_.store(x, std::memory_order_release);
}
+