From 8fbcdf775660a0cc1857e8bedee7ac2351292aa6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 1 Aug 2019 10:44:01 +0200 Subject: spline: don't use faulty devicePixelRatioF() --- spline/spline-widget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spline') diff --git a/spline/spline-widget.cpp b/spline/spline-widget.cpp index fd07bf78..0dfac0e9 100644 --- a/spline/spline-widget.cpp +++ b/spline/spline-widget.cpp @@ -185,8 +185,8 @@ void spline_widget::drawFunction() painter.setPen(QPen(color_, 2, Qt::SolidLine, Qt::FlatCap)); - const double dpr = devicePixelRatioF(); - const double line_length_pixels = std::fmax(1, 2 * dpr); + const double dpr = screen_dpi(); + const double line_length_pixels = std::fmax(1, dpr); const double step = std::fmax(.1, line_length_pixels / c.x()); const double maxx = config->max_input(); -- cgit v1.2.3