1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-13 18:50:58 +01:00

Revert "Nav: Fixed RenderNavHighlight() clipping, essentially revert 6ea90af6b7. (#787)"

This reverts commit 03f5cd6ca1.
This commit is contained in:
omar 2018-01-15 16:19:01 +01:00
parent db63e71f13
commit 6eff21ee5e

View File

@ -4159,6 +4159,7 @@ void ImGui::RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFl
ImGuiWindow* window = ImGui::GetCurrentWindow(); ImGuiWindow* window = ImGui::GetCurrentWindow();
ImRect display_rect = bb; ImRect display_rect = bb;
display_rect.ClipWith(window->ClipRect);
if (flags & ImGuiNavHighlightFlags_TypeDefault) if (flags & ImGuiNavHighlightFlags_TypeDefault)
{ {
const float THICKNESS = 2.0f; const float THICKNESS = 2.0f;