Skip to content

Commit

Permalink
Render mouse cursor in current frame (PR #3036)
Browse files Browse the repository at this point in the history
  • Loading branch information
lopezloo authored Jul 26, 2023
1 parent d28b420 commit 269c4ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Client/gui/CGUI_Impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,13 @@ void CGUI_Impl::Restore()

void CGUI_Impl::DrawMouseCursor()
{
// Disable render queueing in order to render cursor in current frame
GetRenderer()->setQueueingEnabled(false);

CEGUI::MouseCursor::getSingleton().draw();

// Enable render queueing back
GetRenderer()->setQueueingEnabled(true);
}

void CGUI_Impl::ProcessMouseInput(CGUIMouseInput eMouseInput, unsigned long ulX, unsigned long ulY, CGUIMouseButton eMouseButton)
Expand Down

0 comments on commit 269c4ac

Please sign in to comment.