mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
PadSimple: Forgot #ifdef
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2060 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
46151a9369
commit
9f20ee78f9
@ -109,10 +109,15 @@ void SaveRecord()
|
||||
// Check if Dolphin is in focus
|
||||
bool IsFocus()
|
||||
{
|
||||
#ifdef _WIN32
|
||||
HWND Parent = GetParent(g_PADInitialize.hWnd);
|
||||
HWND TopLevel = GetParent(Parent);
|
||||
// Support both rendering to main window and not
|
||||
if (GetForegroundWindow() == TopLevel || GetForegroundWindow() == g_PADInitialize.hWnd)
|
||||
#else
|
||||
// Todo: Fix the render to main window option in non-Windows to?
|
||||
if (GetForegroundWindow() == g_PADInitialize.hWnd)
|
||||
#endif
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user