Internal: Refactored internal RenderMouseCursor so colors can be specified. (#2614)

This commit is contained in:
omar
2019-09-23 14:53:49 +02:00
parent 25849234f6
commit 52deb415e0
3 changed files with 3 additions and 7 deletions

View File

@ -4274,7 +4274,7 @@ void ImGui::Render()
// Draw software mouse cursor if requested
if (g.IO.MouseDrawCursor)
RenderMouseCursor(&g.ForegroundDrawList, g.IO.MousePos, g.Style.MouseCursorScale, g.MouseCursor);
RenderMouseCursor(&g.ForegroundDrawList, g.IO.MousePos, g.Style.MouseCursorScale, g.MouseCursor, IM_COL32_WHITE, IM_COL32_BLACK, IM_COL32(0, 0, 0, 48));
if (!g.ForegroundDrawList.VtxBuffer.empty())
AddDrawListToDrawData(&g.DrawDataBuilder.Layers[0], &g.ForegroundDrawList);