mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-18 17:12:39 +00:00
Fixes Issue 1910
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4886 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
5c27050cd8
commit
f60c3e8445
2 changed files with 6 additions and 6 deletions
|
@ -426,12 +426,8 @@ bool IsFocus()
|
|||
HWND RenderingWindow = g_WiimoteInitialize.hWnd;
|
||||
HWND Parent = GetParent(RenderingWindow);
|
||||
HWND TopLevel = GetParent(Parent);
|
||||
// Allow updates when the config window is in focus to
|
||||
HWND Config = NULL;
|
||||
if (m_BasicConfigFrame)
|
||||
Config = (HWND)m_BasicConfigFrame->GetHWND();
|
||||
// Support both rendering to main window and not
|
||||
if (GetForegroundWindow() == TopLevel || GetForegroundWindow() == RenderingWindow || GetForegroundWindow() == Config)
|
||||
if (GetForegroundWindow() == TopLevel || GetForegroundWindow() == RenderingWindow)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue