Revert "Use the global ::wxSetCursor instead of the local one from our panel object. Should close 3956."

This reverts commit 884006e4c8.
This commit is contained in:
Ryan Houdek 2012-12-15 00:04:10 -06:00
parent 884006e4c8
commit 8838944cd3
2 changed files with 5 additions and 5 deletions

View File

@ -516,12 +516,12 @@ void CFrame::OnActive(wxActivateEvent& event)
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor &&
Core::GetState() == Core::CORE_RUN)
::wxSetCursor(cursor_transparent);
m_RenderParent->SetCursor(cursor_transparent);
}
else
{
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor)
::wxSetCursor(wxNullCursor);
m_RenderParent->SetCursor(wxNullCursor);
}
}
event.Skip();

View File

@ -1055,7 +1055,7 @@ void CFrame::DoPause()
{
Core::SetState(Core::CORE_PAUSE);
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor)
::wxSetCursor(wxNullCursor);
m_RenderParent->SetCursor(wxCURSOR_ARROW);
}
else
{
@ -1075,7 +1075,7 @@ void CFrame::DoPause()
Core::SetState(Core::CORE_RUN);
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor &&
RendererHasFocus())
::wxSetCursor(cursor_transparent);
m_RenderParent->SetCursor(cursor_transparent);
}
UpdateGUI();
}