Skip to content

Commit 53244aa

Browse files
committed
Amend 9bc5b04 with a shadowed variable warning fix.
1 parent ed7551c commit 53244aa

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

imgui.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -6773,7 +6773,6 @@ void ImGui::RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar
67736773
ImRect menu_bar_rect = window->MenuBarRect();
67746774
menu_bar_rect.ClipWith(window->Rect()); // Soft clipping, in particular child window don't have minimum size covering the menu bar so this is useful for them.
67756775
window->DrawList->AddRectFilled(menu_bar_rect.Min, menu_bar_rect.Max, GetColorU32(ImGuiCol_MenuBarBg), (flags & ImGuiWindowFlags_NoTitleBar) ? window_rounding : 0.0f, ImDrawFlags_RoundCornersTop);
6776-
float window_border_size = window->WindowBorderSize;
67776776
if (style.FrameBorderSize > 0.0f && menu_bar_rect.Max.y < window->Pos.y + window->Size.y)
67786777
window->DrawList->AddLine(menu_bar_rect.GetBL() + ImVec2(window_border_size * 0.5f, 0.0f), menu_bar_rect.GetBR() - ImVec2(window_border_size * 0.5f, 0.0f), GetColorU32(ImGuiCol_Border), style.FrameBorderSize);
67796778
}

0 commit comments

Comments
 (0)