diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2020-02-03 22:24:33 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2020-02-03 22:24:33 +0100 |
commit | 25dd60c84f686e9e2239f70e67fd8dcd82c1b268 (patch) | |
tree | 76fcd7c67bb5f4836e3760646226ff6061134a1a /video/video-widget.cpp | |
parent | f9c56da355b061fa4eb330ec7352a2f41186fc18 (diff) |
video/widget: fix hidpi scaling on linux
Diffstat (limited to 'video/video-widget.cpp')
-rw-r--r-- | video/video-widget.cpp | 2 |
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); } |