From ed954e4b2f59720fea71a2737e003899e3232585 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Wed, 2 Mar 2022 15:08:14 +0600 Subject: [PATCH] qt: Fix HiDPI scaling on OpenGL 3.0 renderer --- src/qt/qt_openglrenderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qt/qt_openglrenderer.cpp b/src/qt/qt_openglrenderer.cpp index 173e82448..2ba45f081 100644 --- a/src/qt/qt_openglrenderer.cpp +++ b/src/qt/qt_openglrenderer.cpp @@ -87,8 +87,8 @@ OpenGLRenderer::resizeEvent(QResizeEvent *event) glViewport( destination.x(), destination.y(), - destination.width(), - destination.height()); + destination.width() * devicePixelRatio(), + destination.height() * devicePixelRatio()); } bool