Skip to content

Commit

Permalink
check cursor visibility before drawing it.
Browse files Browse the repository at this point in the history
  • Loading branch information
hecomi committed Jan 4, 2019
1 parent bcce6d5 commit 0329eef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Binary file modified Assets/uDesktopDuplication/Plugins/x86/uDesktopDuplication.dll
Binary file not shown.
Binary file not shown.
8 changes: 7 additions & 1 deletion Plugins/uDesktopDuplication/uDesktopDuplication/Monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,13 @@ void Monitor::Render()
auto& manager = GetMonitorManager();
if (id_ == manager->GetCursorMonitorId())
{
manager->GetCursor()->Draw(unityTexture_);
if (auto cursor = manager->GetCursor())
{
if (cursor->IsVisible())
{
cursor->Draw(unityTexture_);
}
}
}
}

Expand Down

0 comments on commit 0329eef

Please sign in to comment.