check cursor visibility before drawing it.
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -124,7 +124,13 @@ void Monitor::Render()
|
|||||||
auto& manager = GetMonitorManager();
|
auto& manager = GetMonitorManager();
|
||||||
if (id_ == manager->GetCursorMonitorId())
|
if (id_ == manager->GetCursorMonitorId())
|
||||||
{
|
{
|
||||||
manager->GetCursor()->Draw(unityTexture_);
|
if (auto cursor = manager->GetCursor())
|
||||||
|
{
|
||||||
|
if (cursor->IsVisible())
|
||||||
|
{
|
||||||
|
cursor->Draw(unityTexture_);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user