From 25dd60c84f686e9e2239f70e67fd8dcd82c1b268 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 3 Feb 2020 22:24:33 +0100 Subject: video/widget: fix hidpi scaling on linux --- video/video-widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/video-widget.cpp') 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); } -- cgit v1.2.3