mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-30 03:10:06 +00:00
IO: do not disable io.ConfigWindowsResizeFromEdges when ImGuiBackendFlags_HasMouseCursors is not set by backend.
Amend 42bf149ac
This commit is contained in:
parent
8caf7afbad
commit
b902fa4c44
2 changed files with 6 additions and 4 deletions
|
|
@ -9919,10 +9919,6 @@ static void ImGui::ErrorCheckNewFrameSanityChecks()
|
|||
if ((g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) && g.IO.BackendUsingLegacyKeyArrays == 1)
|
||||
IM_ASSERT(g.IO.KeyMap[ImGuiKey_Space] != -1 && "ImGuiKey_Space is not mapped, required for keyboard navigation.");
|
||||
#endif
|
||||
|
||||
// Check: the io.ConfigWindowsResizeFromEdges option requires backend to honor mouse cursor changes and set the ImGuiBackendFlags_HasMouseCursors flag accordingly.
|
||||
if (g.IO.ConfigWindowsResizeFromEdges && !(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseCursors))
|
||||
g.IO.ConfigWindowsResizeFromEdges = false;
|
||||
}
|
||||
|
||||
static void ImGui::ErrorCheckEndFrameSanityChecks()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue