Use wxNullCursor to put the cursor back to its default instead of

explicitly setting the cursor to the arrow.
This commit is contained in:
Glenn Rice 2012-12-17 11:32:10 -06:00
parent f1cc5c2ff9
commit 98ed34d50b
2 changed files with 4 additions and 4 deletions

View File

@ -114,7 +114,7 @@ CPanel::CPanel(
SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor)
SetCursor(wxCURSOR_BLANK);
else
SetCursor(wxCURSOR_ARROW);
SetCursor(wxNullCursor);
break;
case WIIMOTE_DISCONNECT:
@ -483,7 +483,7 @@ void CFrame::OnActive(wxActivateEvent& event)
else
{
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor)
m_RenderParent->SetCursor(wxCURSOR_ARROW);
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)
m_RenderParent->SetCursor(wxCURSOR_ARROW);
m_RenderParent->SetCursor(wxNullCursor);
}
else
{
@ -1138,7 +1138,7 @@ void CFrame::DoStop()
wxMouseEventHandler(CFrame::OnMouse),
(wxObject*)0, this);
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor)
m_RenderParent->SetCursor(wxCURSOR_ARROW);
m_RenderParent->SetCursor(wxNullCursor);
DoFullscreen(false);
if (!SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain)
m_RenderFrame->Destroy();