From 6eff21ee5e33bc6daab915020915fa8d94459812 Mon Sep 17 00:00:00 2001 From: omar Date: Mon, 15 Jan 2018 16:19:01 +0100 Subject: [PATCH] Revert "Nav: Fixed RenderNavHighlight() clipping, essentially revert 6ea90af6b76f2b9f7b86c12813bafd6f0408bdc0. (#787)" This reverts commit 03f5cd6ca128090f71df7959e0f92c6b40076184. --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index 57b24157..368db256 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -4159,6 +4159,7 @@ void ImGui::RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFl ImGuiWindow* window = ImGui::GetCurrentWindow(); ImRect display_rect = bb; + display_rect.ClipWith(window->ClipRect); if (flags & ImGuiNavHighlightFlags_TypeDefault) { const float THICKNESS = 2.0f;