mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 08:15:33 +01:00
sigh...fix #ifdefs in last commit...
This commit is contained in:
parent
05c964e6d6
commit
4a1e8ba30a
@ -508,15 +508,16 @@ void CFrame::OnActive(wxActivateEvent& event)
|
|||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
wxCursor cursor_transparent = wxCursor(cursor_data, 32, 32, 6, 14,
|
wxCursor cursor_transparent = wxCursor(cursor_data, 32, 32, 6, 14,
|
||||||
cursor_data, wxWHITE, wxBLACK);
|
cursor_data, wxWHITE, wxBLACK);
|
||||||
|
|
||||||
m_RenderParent->SetFocus();
|
|
||||||
#else
|
#else
|
||||||
wxBitmap cursor_bitmap(cursor_data, 32, 32);
|
wxBitmap cursor_bitmap(cursor_data, 32, 32);
|
||||||
cursor_bitmap.SetMask(new wxMask(cursor_bitmap));
|
cursor_bitmap.SetMask(new wxMask(cursor_bitmap));
|
||||||
wxCursor cursor_transparent = wxCursor(cursor_bitmap.ConvertToImage());
|
wxCursor cursor_transparent = wxCursor(cursor_bitmap.ConvertToImage());
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
::SetFocus((HWND)m_RenderParent->GetHandle());
|
::SetFocus((HWND)m_RenderParent->GetHandle());
|
||||||
#endif
|
#else
|
||||||
|
m_RenderParent->SetFocus();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor &&
|
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user