Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "Use the global ::wxSetCursor instead of the local one from ou…
…r panel object. Should close 3956."

This reverts commit 884006e.
  • Loading branch information
Sonicadvance1 committed Dec 15, 2012
1 parent 884006e commit 8838944
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Source/Core/DolphinWX/Src/Frame.cpp
Expand Up @@ -514,14 +514,14 @@ void CFrame::OnActive(wxActivateEvent& event)
m_RenderParent->SetFocus();
#endif

if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor &&
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();
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/DolphinWX/Src/FrameTools.cpp
Expand Up @@ -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
{
Expand All @@ -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();
}
Expand Down

0 comments on commit 8838944

Please sign in to comment.