From bd538febe8f6ff5be9714638838f5b77e454c462 Mon Sep 17 00:00:00 2001 From: Chris Whiteford Date: Mon, 31 May 2021 12:52:25 -0400 Subject: [PATCH] Fix up double sized opengl graph rendering on high res screens --- re/graphingwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/re/graphingwindow.cpp b/re/graphingwindow.cpp index 05b5133..a300a45 100644 --- a/re/graphingwindow.cpp +++ b/re/graphingwindow.cpp @@ -86,6 +86,9 @@ GraphingWindow::GraphingWindow(const QVector *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);