sigh...fix #ifdefs in last commit...

This commit is contained in:
Shawn Hoffman 2012-03-19 07:46:23 -07:00
parent 05c964e6d6
commit 4a1e8ba30a

View File

@ -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 &&