From 8dd3f854fe04bb7d19c16717511c48f5c6fd1d35 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 7 Mar 2015 00:32:52 +0000 Subject: [PATCH] AA branch: fixed columns separators. --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 43205db69..8c788893e 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -6550,7 +6550,7 @@ void ImGui::Columns(int columns_count, const char* id, bool border) // Draw before resize so our items positioning are in sync with the line being drawn const ImU32 col = window->Color(held ? ImGuiCol_ColumnActive : hovered ? ImGuiCol_ColumnHovered : ImGuiCol_Column); const float xi = (float)(int)x; - window->DrawList->AddLine(ImVec2(xi, y1), ImVec2(xi, y2), col); + window->DrawList->AddLine(ImVec2(xi+0.5f, y1+1.0f), ImVec2(xi+0.5f, y2), col); if (held) {