Skip to content

Commit

Permalink
Renamed function (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Aug 20, 2016
1 parent ead79dc commit e3fec8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2363,7 +2363,7 @@ static ImVec2 NavCalcPreferredMousePos()
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;
g.NavId = id;
Expand Down Expand Up @@ -2519,7 +2519,7 @@ static void NavUpdate()

// Apply result from previous frame navigation directional move request
ImGui::SetActiveID(0);
SetNavIdMoveMouse(g.NavMoveResultId, g.NavMoveResultRectRel);
SetNavIdAndMoveMouse(g.NavMoveResultId, g.NavMoveResultRectRel);
g.NavMoveFromClampedRefRect = false;
}

Expand Down Expand Up @@ -2590,7 +2590,7 @@ static void NavUpdate()
g.NavDisableHighlight = false;
g.NavDisableMouseHover = true;
if (g.NavLayer == 0 && g.NavWindow->NavLastId)
SetNavIdMoveMouse(g.NavWindow->NavLastId, ImRect());
SetNavIdAndMoveMouse(g.NavWindow->NavLastId, ImRect());
else
NavInitWindow(g.NavWindow, true);
}
Expand Down Expand Up @@ -2632,7 +2632,7 @@ static void NavUpdate()
// Leave the "menu" layer
g.NavLayer = 0;
if (g.NavWindow->NavLastId)
SetNavIdMoveMouse(g.NavWindow->NavLastId, ImRect());
SetNavIdAndMoveMouse(g.NavWindow->NavLastId, ImRect());
else
NavInitWindow(g.NavWindow, true);
}
Expand Down

0 comments on commit e3fec8c

Please sign in to comment.