diff options
Diffstat (limited to 'spline/spline-widget.cpp')
-rw-r--r-- | spline/spline-widget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |