mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
Use the global ::wxSetCursor instead of the local one from our panel object. Should close 3956.
This commit is contained in:
parent
88b890824b
commit
884006e4c8
@ -514,14 +514,14 @@ void CFrame::OnActive(wxActivateEvent& event)
|
|||||||
m_RenderParent->SetFocus();
|
m_RenderParent->SetFocus();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor &&
|
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor &&
|
||||||
Core::GetState() == Core::CORE_RUN)
|
Core::GetState() == Core::CORE_RUN)
|
||||||
m_RenderParent->SetCursor(cursor_transparent);
|
::wxSetCursor(cursor_transparent);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor)
|
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor)
|
||||||
m_RenderParent->SetCursor(wxNullCursor);
|
::wxSetCursor(wxNullCursor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
@ -1055,7 +1055,7 @@ void CFrame::DoPause()
|
|||||||
{
|
{
|
||||||
Core::SetState(Core::CORE_PAUSE);
|
Core::SetState(Core::CORE_PAUSE);
|
||||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor)
|
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor)
|
||||||
m_RenderParent->SetCursor(wxCURSOR_ARROW);
|
::wxSetCursor(wxNullCursor);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1075,7 +1075,7 @@ void CFrame::DoPause()
|
|||||||
Core::SetState(Core::CORE_RUN);
|
Core::SetState(Core::CORE_RUN);
|
||||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor &&
|
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor &&
|
||||||
RendererHasFocus())
|
RendererHasFocus())
|
||||||
m_RenderParent->SetCursor(cursor_transparent);
|
::wxSetCursor(cursor_transparent);
|
||||||
}
|
}
|
||||||
UpdateGUI();
|
UpdateGUI();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user