From 67dee48b3e2b3ab6acdbe210cd135553ef6b990f Mon Sep 17 00:00:00 2001 From: nakeee Date: Mon, 23 Nov 2009 08:25:41 +0000 Subject: [PATCH] Moved XInitThreads to where it wont crash should solve issue 1540 (Thanks emuxperts for the fix) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4603 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/GameListCtrl.cpp | 2 +- Source/Core/DolphinWX/Src/Main.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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; }