summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/FrameTools.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-09-18 14:47:55 -0400
committerLioncash <mathew1800@gmail.com>2014-09-18 14:52:12 -0400
commit207d7787a435515c47cbba0b12d7d1341dda596c (patch)
tree71dea79ed78b50830c0ae5eb950854723d27e207 /Source/Core/DolphinWX/FrameTools.cpp
parente9164247d6e8adcba659226205b268becdc9b00c (diff)
DolphinWX: Fix GC/Wiimote input windows randomly crashing on OSX
Diffstat (limited to 'Source/Core/DolphinWX/FrameTools.cpp')
-rw-r--r--Source/Core/DolphinWX/FrameTools.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp
index 4045879e31..e6a9aaad17 100644
--- a/Source/Core/DolphinWX/FrameTools.cpp
+++ b/Source/Core/DolphinWX/FrameTools.cpp
@@ -1245,11 +1245,9 @@ void CFrame::OnConfigPAD(wxCommandEvent& WXUNUSED (event))
{
#if defined(HAVE_X11) && HAVE_X11
Window win = X11Utils::XWindowFromHandle(GetHandle());
- Pad::Initialize((void *)win);
-#elif defined(__APPLE__)
- Pad::Initialize((void *)this);
+ Pad::Initialize(reinterpret_cast<void*>(win));
#else
- Pad::Initialize(GetHandle());
+ Pad::Initialize(reinterpret_cast<void*>(GetHandle()));
#endif
}
InputConfigDialog m_ConfigFrame(this, *pad_plugin, _trans("Dolphin GCPad Configuration"));
@@ -1273,11 +1271,9 @@ void CFrame::OnConfigWiimote(wxCommandEvent& WXUNUSED (event))
{
#if defined(HAVE_X11) && HAVE_X11
Window win = X11Utils::XWindowFromHandle(GetHandle());
- Wiimote::Initialize((void *)win);
-#elif defined(__APPLE__)
- Wiimote::Initialize((void *)this);
+ Wiimote::Initialize(reinterpret_cast<void*>(win));
#else
- Wiimote::Initialize(GetHandle());
+ Wiimote::Initialize(reinterpret_cast<void*>(GetHandle()));
#endif
}
WiimoteConfigDiag m_ConfigFrame(this, *wiimote_plugin);