mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-24 02:14:22 +00:00
Nav: Comments, tweaks
This commit is contained in:
parent
9edf211c0e
commit
13c407591e
2 changed files with 8 additions and 4 deletions
|
|
@ -2020,10 +2020,10 @@ ImGuiID ImGui::GetActiveID()
|
|||
|
||||
void ImGui::SetFocusID(ImGuiID id, ImGuiWindow* window)
|
||||
{
|
||||
IM_ASSERT(id != 0);
|
||||
ImGuiContext& g = *GImGui;
|
||||
|
||||
// Assume that SetActiveID() is called in the context where its NavLayer is the current layer, which is the case everywhere we call it.
|
||||
IM_ASSERT(id != 0);
|
||||
|
||||
// Assume that SetFocusID() is called in the context where its NavLayer is the current layer, which is the case everywhere we call it.
|
||||
const int nav_layer = window->DC.NavLayerCurrent;
|
||||
g.NavId = id;
|
||||
g.NavWindow = window;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue