Kill off the wx casts within InputCommon and GLInterface.

All because someone didn't actually return the wxWindow handle for the edge case.
This commit is contained in:
Lioncash
2014-09-14 01:06:25 -04:00
parent 0b44795cf3
commit 357c0adc3c
3 changed files with 5 additions and 11 deletions

View File

@ -87,12 +87,10 @@ public:
void* GetRenderHandle()
{
#ifdef _WIN32
return (void *)m_RenderParent->GetHandle();
#elif defined(HAVE_X11) && HAVE_X11
return (void *)X11Utils::XWindowFromHandle(m_RenderParent->GetHandle());
#if defined(HAVE_X11) && HAVE_X11
return reinterpret_cast<void*>(X11Utils::XWindowFromHandle(m_RenderParent->GetHandle()));
#else
return m_RenderParent;
return reinterpret_cast<void*>(m_RenderParent->GetHandle());
#endif
}