mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Examples: DirectX9-10-11: Only call Windows' SetCursor(NULL) when io.MouseDrawCursor is set (#585, #909)
This commit is contained in:
parent
2973287fd3
commit
7c2b35704d
3 changed files with 6 additions and 3 deletions
|
|
@ -576,7 +576,8 @@ void ImGui_ImplDX11_NewFrame()
|
|||
// io.MouseWheel : filled by WM_MOUSEWHEEL events
|
||||
|
||||
// Hide OS mouse cursor if ImGui is drawing it
|
||||
SetCursor(io.MouseDrawCursor ? NULL : LoadCursor(NULL, IDC_ARROW));
|
||||
if (io.MouseDrawCursor)
|
||||
SetCursor(NULL);
|
||||
|
||||
// Start the frame
|
||||
ImGui::NewFrame();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue