Merge pull request #358 from pyjamasam/openglgraphfixes
Fix up double sized opengl graph rendering on high res screens
This commit is contained in:
@@ -89,6 +89,9 @@ GraphingWindow::GraphingWindow(const QVector<CANFrame> *frames, QWidget *parent)
|
|||||||
|
|
||||||
if (useOpenGL)
|
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->setAntialiasedElements(QCP::aeAll);
|
||||||
//ui->graphingView->setNoAntialiasingOnDrag(true);
|
//ui->graphingView->setNoAntialiasingOnDrag(true);
|
||||||
ui->graphingView->setOpenGl(true);
|
ui->graphingView->setOpenGl(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user