message: Internals: Move GetVisibleRect() a few functions above so it gets to hang out with its peers.
diff: @@ -3424,6 +3424,14 @@ ImVec2 ImGui::CalcItemRectClosestPoint(const ImVec2& pos, bool on_edge, float ou
  return rect.GetClosestPoint(pos, on_edge);
  }
  +static ImRect GetVisibleRect()
  +{
  + ImGuiContext& g = *GImGui;
  + if (g.IO.DisplayVisibleMin.x != g.IO.DisplayVisibleMax.x && g.IO.DisplayVisibleMin.y != g.IO.DisplayVisibleMax.y)
  + return ImRect(g.IO.DisplayVisibleMin, g.IO.DisplayVisibleMax);
  + return ImRect(0.0f, 0.0f, g.IO.DisplaySize.x, g.IO.DisplaySize.y);
  +}
  +
  // Tooltip is stored and turned into a BeginTooltip()/EndTooltip() sequence at the end of the frame. Each call override previous value.
  void ImGui::SetTooltipV(const char* fmt, va_list args)
  {
  @@ -3439,14 +3447,6 @@ void ImGui::SetTooltip(const char* fmt, ...)
  va_end(args);
  }
  -static ImRect GetVisibleRect()
  -{
  - ImGuiContext& g = *GImGui;
  - if (g.IO.DisplayVisibleMin.x != g.IO.DisplayVisibleMax.x && g.IO.DisplayVisibleMin.y != g.IO.DisplayVisibleMax.y)
  - return ImRect(g.IO.DisplayVisibleMin, g.IO.DisplayVisibleMax);
  - return ImRect(0.0f, 0.0f, g.IO.DisplaySize.x, g.IO.DisplaySize.y);
  -}
  -
  void ImGui::BeginTooltip()
  {
  ImGuiWindowFlags flags = ImGuiWindowFlags_Tooltip|ImGuiWindowFlags_NoTitleBar|ImGuiWindowFlags_NoMove|ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoSavedSettings|ImGuiWindowFlags_AlwaysAutoResize;
  