Fix up double sized opengl graph rendering on high res screens

This commit is contained in:
Chris Whiteford
2021-05-31 12:52:25 -04:00
parent f000174032
commit bd538febe8
+3
View File
@@ -86,6 +86,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);