Merge pull request #11785 from shuffle2/qtnext3

DolphinQt: cache icons instead of single pixmaps
This commit is contained in:
Admiral H. Curtiss
2023-04-29 17:32:29 +02:00
committed by GitHub
15 changed files with 94 additions and 218 deletions

View File

@ -379,8 +379,7 @@ void CodeViewWidget::Update(const Core::CPUThreadGuard* guard)
if (debug_interface.IsBreakpoint(addr))
{
auto icon =
Resources::GetScaledThemeIcon("debugger_breakpoint").pixmap(QSize(rowh - 2, rowh - 2));
auto icon = Resources::GetThemeIcon("debugger_breakpoint").pixmap(QSize(rowh - 2, rowh - 2));
if (!m_system.GetPowerPC().GetBreakPoints().IsBreakPointEnable(addr))
{
QPixmap disabled_icon(icon.size());