mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-16 05:42:55 +00:00
BreakpointWidget: Correct icon position
Co-Authored-By: TryTwo <10532806+TryTwo@users.noreply.github.com>
This commit is contained in:
parent
01a2cf8db9
commit
afa6e26e5d
@ -83,7 +83,8 @@ private:
|
|||||||
if (!pix.isNull())
|
if (!pix.isNull())
|
||||||
{
|
{
|
||||||
const QRect r = option.rect;
|
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);
|
painter->drawPixmap(r.topLeft() + p, pix);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user