@@ -3927,8 +3927,8 @@ void ImGui::RenderTextEllipsis(ImDrawList* draw_list, const ImVec2& pos_min, con
39273927 text_end_full = FindRenderedTextEnd(text);
39283928 const ImVec2 text_size = text_size_if_known ? *text_size_if_known : CalcTextSize(text, text_end_full, false, 0.0f);
39293929
3930- //draw_list->AddLine(ImVec2( pos_max.x, pos_min.y - 4), ImVec2( pos_max.x, pos_max. y + 6) , IM_COL32(0, 0, 255, 255));
3931- //draw_list->AddLine(ImVec2( ellipsis_max_x, pos_min.y - 2), ImVec2(ellipsis_max_x, pos_max.y + 3) , IM_COL32(0, 255, 0, 255));
3930+ //draw_list->AddLineV( pos_max.x, pos_min.y - 4, pos_max.y + 6, IM_COL32(0, 0, 255, 255));
3931+ //draw_list->AddLineV( ellipsis_max_x, pos_min.y - 2, pos_max.y + 3, IM_COL32(0, 255, 0, 255));
39323932
39333933 // FIXME: We could technically remove (last_glyph->AdvanceX - last_glyph->X1) from text_size.x here and save a few pixels.
39343934 if (text_size.x > pos_max.x - pos_min.x)
@@ -7155,7 +7155,7 @@ static void ImGui::RenderWindowOuterBorders(ImGuiWindow* window)
71557155 if (g.Style.FrameBorderSize > 0 && !(window->Flags & ImGuiWindowFlags_NoTitleBar))
71567156 {
71577157 float y = window->Pos.y + window->TitleBarHeight - 1;
7158- window->DrawList->AddLine(ImVec2( window->Pos.x + border_size * 0.5f, y), ImVec2( window->Pos.x + window->Size.x - border_size * 0.5f, y) , border_col, g.Style.FrameBorderSize);
7158+ window->DrawList->AddLineH( window->Pos.x + border_size * 0.5f, window->Pos.x + window->Size.x - border_size * 0.5f, y, border_col, g.Style.FrameBorderSize);
71597159 }
71607160}
71617161
@@ -7223,7 +7223,7 @@ void ImGui::RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar
72237223 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.
72247224 window->DrawList->AddRectFilled(menu_bar_rect.Min, menu_bar_rect.Max, GetColorU32(ImGuiCol_MenuBarBg), (flags & ImGuiWindowFlags_NoTitleBar) ? window_rounding : 0.0f, ImDrawFlags_RoundCornersTop);
72257225 if (style.FrameBorderSize > 0.0f && menu_bar_rect.Max.y < window->Pos.y + window->Size.y)
7226- 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);
7226+ window->DrawList->AddLineH (menu_bar_rect.Min.x + window_border_size * 0.5f, menu_bar_rect.Max.x - window_border_size * 0.5f, menu_bar_rect.Max.y , GetColorU32(ImGuiCol_Border), style.FrameBorderSize);
72277227 }
72287228
72297229 // Scrollbars
@@ -17602,8 +17602,8 @@ void ImGui::DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label)
1760217602 {
1760317603 ImDrawList* draw_list = GetForegroundDrawList(tab_bar->Window);
1760417604 draw_list->AddRect(tab_bar->BarRect.Min, tab_bar->BarRect.Max, IM_COL32(255, 255, 0, 255));
17605- draw_list->AddLine(ImVec2( tab_bar->ScrollingRectMinX, tab_bar->BarRect.Min.y), ImVec2( tab_bar->ScrollingRectMinX, tab_bar-> BarRect.Max.y) , IM_COL32(0, 255, 0, 255));
17606- draw_list->AddLine(ImVec2( tab_bar->ScrollingRectMaxX, tab_bar->BarRect.Min.y), ImVec2( tab_bar->ScrollingRectMaxX, tab_bar-> BarRect.Max.y) , IM_COL32(0, 255, 0, 255));
17605+ draw_list->AddLineV( tab_bar->ScrollingRectMinX, tab_bar->BarRect.Min.y, tab_bar->BarRect.Max.y, IM_COL32(0, 255, 0, 255));
17606+ draw_list->AddLineV( tab_bar->ScrollingRectMaxX, tab_bar->BarRect.Min.y, tab_bar->BarRect.Max.y, IM_COL32(0, 255, 0, 255));
1760717607 }
1760817608 if (open)
1760917609 {
@@ -17932,8 +17932,8 @@ void ImGui::DebugDrawCursorPos(ImU32 col)
1793217932 ImGuiContext& g = *GImGui;
1793317933 ImGuiWindow* window = g.CurrentWindow;
1793417934 ImVec2 pos = window->DC.CursorPos;
17935- window->DrawList->AddLine(ImVec2( pos.x, pos.y - 3.0f), ImVec2( pos.x, pos. y + 4.0f) , col, 1.0f);
17936- window->DrawList->AddLine(ImVec2( pos.x - 3.0f, pos.y), ImVec2(pos. x + 4.0f, pos.y) , col, 1.0f);
17935+ window->DrawList->AddLineV( pos.x, pos.y - 3.0f, pos.y + 4.0f, col, 1.0f);
17936+ window->DrawList->AddLineH( pos.x - 3.0f, pos.x + 4.0f, pos.y, col, 1.0f);
1793717937}
1793817938
1793917939// Draw a 10px wide rectangle around CurposPos.x using Line Y1/Y2 in current window's DrawList
@@ -17944,9 +17944,9 @@ void ImGui::DebugDrawLineExtents(ImU32 col)
1794417944 float curr_x = window->DC.CursorPos.x;
1794517945 float line_y1 = (window->DC.IsSameLine ? window->DC.CursorPosPrevLine.y : window->DC.CursorPos.y);
1794617946 float line_y2 = line_y1 + (window->DC.IsSameLine ? window->DC.PrevLineSize.y : window->DC.CurrLineSize.y);
17947- window->DrawList->AddLine(ImVec2( curr_x - 5.0f, line_y1), ImVec2( curr_x + 5.0f, line_y1) , col, 1.0f);
17948- window->DrawList->AddLine(ImVec2( curr_x - 0.5f, line_y1), ImVec2(curr_x - 0.5f, line_y2) , col, 1.0f);
17949- window->DrawList->AddLine(ImVec2( curr_x - 5.0f, line_y2), ImVec2( curr_x + 5.0f, line_y2) , col, 1.0f);
17947+ window->DrawList->AddLineH( curr_x - 5.0f, curr_x + 5.0f, line_y1, col, 1.0f);
17948+ window->DrawList->AddLineV( curr_x - 0.5f, line_y1, line_y2, col, 1.0f);
17949+ window->DrawList->AddLineH( curr_x - 5.0f, curr_x + 5.0f, line_y2, col, 1.0f);
1795017950}
1795117951
1795217952// Draw last item rect in ForegroundDrawList (so it is always visible)
0 commit comments