mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-21 22:12:05 +08:00
cabana: sets the line width with floating point precision. (#27653)
This commit is contained in:
@@ -843,7 +843,7 @@ QXYSeries *ChartView::createSeries(SeriesType type, QColor color) {
|
||||
series->setUseOpenGL(true);
|
||||
// Qt doesn't properly apply device pixel ratio in OpenGL mode
|
||||
QPen pen = series->pen();
|
||||
pen.setWidth(2.0 * qApp->devicePixelRatio());
|
||||
pen.setWidthF(2.0 * devicePixelRatioF());
|
||||
series->setPen(pen);
|
||||
#endif
|
||||
chart()->addSeries(series);
|
||||
|
||||
Reference in New Issue
Block a user