Use wxNullCursor to put the cursor back to its default instead of
explicitly setting the cursor to the arrow.
This commit is contained in:
parent
f1cc5c2ff9
commit
98ed34d50b
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue