summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp
diff options
context:
space:
mode:
authorVampireFlower <monstercatspedup1@gmail.com>2024-07-08 03:49:31 -0700
committerVampireFlower <monstercatspedup1@gmail.com>2024-07-09 15:20:56 -0700
commitafa6e26e5de58e942c8e7ef3a02632ccfb851d3d (patch)
tree3083a59ce90b01613636b108ccf7d4b44585fbf4 /Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp
parent01a2cf8db9416b90eef3160a800f7b2560a3ae4a (diff)
BreakpointWidget: Correct icon position
Co-Authored-By: TryTwo <10532806+TryTwo@users.noreply.github.com>
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp3
1 files changed, 2 insertions, 1 deletions
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);
}
}