Commit 97a1b21d authored by Yuri Chornoivan's avatar Yuri Chornoivan

Get rid of pixelation on HiDPI displays

Differential revision: https://phabricator.kde.org/D29421
BUG: 419527
FIXED-IN: 20.04.2
parent 12180ed6
......@@ -2927,7 +2927,9 @@ void View::resizeEvent(QResizeEvent *)
m_stopCalculating = true; //stop drawing
return;
}
buffer = QPixmap( size() );
qreal dpr = devicePixelRatioF();
buffer = QPixmap( size() * dpr );
buffer.setDevicePixelRatio(dpr);
drawPlot();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment