mirror of
https://github.com/Drezil/imgui.git
synced 2025-12-08 04:51:03 +01:00
Nav: Fixed RenderNavHighlight() clipping, essentially revert 6ea90af6b7. (#787)
This commit is contained in:
@@ -4147,7 +4147,6 @@ 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user