From afa6e26e5de58e942c8e7ef3a02632ccfb851d3d Mon Sep 17 00:00:00 2001 From: VampireFlower Date: Mon, 8 Jul 2024 03:49:31 -0700 Subject: [PATCH] BreakpointWidget: Correct icon position Co-Authored-By: TryTwo <10532806+TryTwo@users.noreply.github.com> --- Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp b/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp index 130e68e860..a678889aad 100644 --- a/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp @@ -83,7 +83,8 @@ private: if (!pix.isNull()) { const QRect r = option.rect; - const QPoint p = QPoint((r.width() - pix.width()) / 2, (r.height() - pix.height()) / 2); + const QSize size = pix.deviceIndependentSize().toSize(); + const QPoint p = QPoint((r.width() - size.width()) / 2, (r.height() - size.height()) / 2); painter->drawPixmap(r.topLeft() + p, pix); } }