mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-23 12:27:01 +00:00
Renamed function (#323)
This commit is contained in:
parent
ead79dcdac
commit
e3fec8c0aa
@ -2363,7 +2363,7 @@ static ImVec2 NavCalcPreferredMousePos()
|
|||||||
return ImClamp(p, r.Min, r.Max);
|
return ImClamp(p, r.Min, r.Max);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SetNavIdMoveMouse(ImGuiID id, const ImRect& rect_rel)
|
static void SetNavIdAndMoveMouse(ImGuiID id, const ImRect& rect_rel)
|
||||||
{
|
{
|
||||||
ImGuiContext& g = *GImGui;
|
ImGuiContext& g = *GImGui;
|
||||||
g.NavId = id;
|
g.NavId = id;
|
||||||
@ -2519,7 +2519,7 @@ static void NavUpdate()
|
|||||||
|
|
||||||
// Apply result from previous frame navigation directional move request
|
// Apply result from previous frame navigation directional move request
|
||||||
ImGui::SetActiveID(0);
|
ImGui::SetActiveID(0);
|
||||||
SetNavIdMoveMouse(g.NavMoveResultId, g.NavMoveResultRectRel);
|
SetNavIdAndMoveMouse(g.NavMoveResultId, g.NavMoveResultRectRel);
|
||||||
g.NavMoveFromClampedRefRect = false;
|
g.NavMoveFromClampedRefRect = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2590,7 +2590,7 @@ static void NavUpdate()
|
|||||||
g.NavDisableHighlight = false;
|
g.NavDisableHighlight = false;
|
||||||
g.NavDisableMouseHover = true;
|
g.NavDisableMouseHover = true;
|
||||||
if (g.NavLayer == 0 && g.NavWindow->NavLastId)
|
if (g.NavLayer == 0 && g.NavWindow->NavLastId)
|
||||||
SetNavIdMoveMouse(g.NavWindow->NavLastId, ImRect());
|
SetNavIdAndMoveMouse(g.NavWindow->NavLastId, ImRect());
|
||||||
else
|
else
|
||||||
NavInitWindow(g.NavWindow, true);
|
NavInitWindow(g.NavWindow, true);
|
||||||
}
|
}
|
||||||
@ -2632,7 +2632,7 @@ static void NavUpdate()
|
|||||||
// Leave the "menu" layer
|
// Leave the "menu" layer
|
||||||
g.NavLayer = 0;
|
g.NavLayer = 0;
|
||||||
if (g.NavWindow->NavLastId)
|
if (g.NavWindow->NavLastId)
|
||||||
SetNavIdMoveMouse(g.NavWindow->NavLastId, ImRect());
|
SetNavIdAndMoveMouse(g.NavWindow->NavLastId, ImRect());
|
||||||
else
|
else
|
||||||
NavInitWindow(g.NavWindow, true);
|
NavInitWindow(g.NavWindow, true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user