mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Micro-optimize RenderWidgetHasFocus().
This commit is contained in:
parent
74291017e5
commit
1d4b3a90eb
2 changed files with 1 additions and 11 deletions
|
@ -261,16 +261,6 @@ void DMainWindow::OnCoreStateChanged(Core::EState state)
|
|||
m_game_tracker->setEnabled(is_not_initialized);
|
||||
}
|
||||
|
||||
bool DMainWindow::RenderWidgetHasFocus()
|
||||
{
|
||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain)
|
||||
return isActiveWindow();
|
||||
else if (m_render_widget != nullptr)
|
||||
return m_render_widget->isActiveWindow();
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
// Update all the icons used in DMainWindow with fresh ones from
|
||||
// "Resources". Call this function after changing the icon theme.
|
||||
void DMainWindow::UpdateIcons()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue