Merge pull request #358 from pyjamasam/openglgraphfixes

Fix up double sized opengl graph rendering on high res screens
This commit is contained in:
Collin Kidder
2022-12-25 13:27:51 -05:00
committed by GitHub
+3
View File
@@ -89,6 +89,9 @@ GraphingWindow::GraphingWindow(const QVector<CANFrame> *frames, QWidget *parent)
if (useOpenGL)
{
//Fix the device pixel ratio for openGL so the graph doesn't render double sized
ui->graphingView->setBufferDevicePixelRatio(1);
ui->graphingView->setAntialiasedElements(QCP::aeAll);
//ui->graphingView->setNoAntialiasingOnDrag(true);
ui->graphingView->setOpenGl(true);