diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-08-01 11:22:41 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-08-01 11:22:41 +0200 |
commit | b930dd608bf95ecc3f89007313ba8ab8b1935ee5 (patch) | |
tree | 649ddba90caa1de65ad1c53be23afeb635121e73 /spline/spline-widget.cpp | |
parent | e71f7af1d619d02667c2bfb9f5fd0d925e534230 (diff) |
video: reuse working dpi check
Diffstat (limited to 'spline/spline-widget.cpp')
-rw-r--r-- | spline/spline-widget.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/spline/spline-widget.cpp b/spline/spline-widget.cpp index 0ae3766d..e182e45a 100644 --- a/spline/spline-widget.cpp +++ b/spline/spline-widget.cpp @@ -258,15 +258,6 @@ void spline_widget::drawFunction() } } -double spline_widget::screen_dpi() const -{ -#ifdef _WIN32 - return std::max(devicePixelRatioF(), 1.); -#else - return std::max(std::max(logicalDpiX()/(double)physicalDpiX(), devicePixelRatioF()), 1.); -#endif -} - QSize spline_widget::minimumSizeHint() const { const double dpi = screen_dpi(); |