Merge pull request #1118 from lioncash/lolwinapi

FrameTools: Set focus on Windows via CFrame::SetFocus
This commit is contained in:
Ryan Houdek 2014-09-19 20:48:27 -05:00
commit 2db7413a19
1 changed files with 0 additions and 4 deletions

View File

@ -973,11 +973,7 @@ void CFrame::StartGame(const std::string& filename)
X11Utils::XWindowFromHandle(GetHandle()), true);
#endif
#ifdef _WIN32
::SetFocus((HWND)m_RenderParent->GetHandle());
#else
m_RenderParent->SetFocus();
#endif
wxTheApp->Bind(wxEVT_KEY_DOWN, &CFrame::OnKeyDown, this);
wxTheApp->Bind(wxEVT_KEY_UP, &CFrame::OnKeyUp, this);