diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-16 10:12:15 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-16 10:12:15 +0100 |
commit | 8b23bb714091695afdc04a1451fe200a70583e48 (patch) | |
tree | 80a07cdd84e880c890fe738eafcc31297b1b4a75 /spline/spline-widget.cpp | |
parent | 68ee756355d082f5970440985aef6757f674f969 (diff) |
spline/widget: no need to round pixel ratio
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 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)) { |