summaryrefslogtreecommitdiffhomepage
path: root/spline/spline-widget.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-16 10:12:15 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-16 10:12:15 +0100
commit8b23bb714091695afdc04a1451fe200a70583e48 (patch)
tree80a07cdd84e880c890fe738eafcc31297b1b4a75 /spline/spline-widget.cpp
parent68ee756355d082f5970440985aef6757f674f969 (diff)
spline/widget: no need to round pixel ratio
Diffstat (limited to 'spline/spline-widget.cpp')
-rw-r--r--spline/spline-widget.cpp4
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))
{