From 9f20ee78f9b8f7f6a5f25e936aadad5f2f1eb806 Mon Sep 17 00:00:00 2001 From: John Peterson Date: Sun, 1 Feb 2009 15:55:00 +0000 Subject: [PATCH] PadSimple: Forgot #ifdef git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2060 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp b/Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp index 14967c89d4..a90fae177f 100644 --- a/Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp +++ b/Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp @@ -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;