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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/video-widget.cpp b/video/video-widget.cpp
index 8262a380..4399b11a 100644
--- a/video/video-widget.cpp
+++ b/video/video-widget.cpp
@@ -11,7 +11,7 @@
void video_widget::init_image_nolock()
{
- double dpi = screen_dpi();
+ double dpi = devicePixelRatioF();
size_.store({ iround(width() * dpi), iround(height() * dpi) }, std::memory_order_release);
}