From 8b23bb714091695afdc04a1451fe200a70583e48 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 16 Jan 2018 10:12:15 +0100 Subject: spline/widget: no need to round pixel ratio --- 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 c2c2ed07..e4e43f71 100644 --- a/spline/spline-widget.cpp +++ b/spline/spline-widget.cpp @@ -270,8 +270,8 @@ void spline_widget::paintEvent(QPaintEvent *e) QPainter p(this); const double dpr = devicePixelRatioF(); - const int W = int(width() * dpr + .75); - const int H = int(height() * dpr + .75); + const int W = int(width() * dpr); + const int H = int(height() * dpr); if (_background.size() != QSize(W, H)) { -- cgit v1.2.3