diff --git a/Source/Core/DolphinWX/Src/GameListCtrl.cpp b/Source/Core/DolphinWX/Src/GameListCtrl.cpp index a21fa8c394..c5618d179f 100644 --- a/Source/Core/DolphinWX/Src/GameListCtrl.cpp +++ b/Source/Core/DolphinWX/Src/GameListCtrl.cpp @@ -713,7 +713,7 @@ void CGameListCtrl::OnKeyPress(wxListEvent& event) // This shows a little tooltip with the current Game's emulation state void CGameListCtrl::OnMouseMotion(wxMouseEvent& event) { - int flags; long subitem; + int flags; long subitem = 0; long item = HitTest(event.GetPosition(), flags, &subitem); static int lastItem = -1; diff --git a/Source/Core/DolphinWX/Src/Main.cpp b/Source/Core/DolphinWX/Src/Main.cpp index b1c11f2784..352dfaf739 100644 --- a/Source/Core/DolphinWX/Src/Main.cpp +++ b/Source/Core/DolphinWX/Src/Main.cpp @@ -123,9 +123,6 @@ bool DolphinApp::OnInit() RegisterMsgAlertHandler(&wxMsgAlert); #endif -#if defined __linux__ - XInitThreads(); -#endif // "ExtendedTrace" looks freakin dangerous!!! #ifdef _WIN32 EXTENDEDTRACEINITIALIZE("."); @@ -457,6 +454,9 @@ bool DolphinApp::OnInit() // Set main parent window SetTopWindow(main_frame); +#if defined __linux__ + XInitThreads(); +#endif return true; }