Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion implot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3171,8 +3171,13 @@ void EndPlot() {
}

// render border
#if IMGUI_VERSION_NUM < 19276
if (render_border)
DrawList.AddRect(plot.PlotRect.Min, plot.PlotRect.Max, GetStyleColorU32(ImPlotCol_PlotBorder), 0, ImDrawFlags_RoundCornersAll, gp.Style.PlotBorderSize);
DrawList.AddRect(plot.PlotRect.Min, plot.PlotRect.Max, GetStyleColorU32(ImPlotCol_PlotBorder), 0, ImDrawFlags_None, gp.Style.PlotBorderSize);
#else
if (render_border)
DrawList.AddRect(plot.PlotRect.Min, plot.PlotRect.Max, GetStyleColorU32(ImPlotCol_PlotBorder), 0, gp.Style.PlotBorderSize, ImDrawFlags_None);
#endif

// render tags
for (int i = 0; i < gp.Tags.Size; ++i) {
Expand Down
4 changes: 4 additions & 0 deletions implot_items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2145,7 +2145,11 @@ void PlotPolygonEx(const char* label_id, const Getter& getter, const ImPlotSpec&
}
if (s.RenderLine && getter.Count >= 2) {
const ImU32 col_line = ImGui::GetColorU32(s.Spec.LineColor);
#if IMGUI_VERSION_NUM < 19276
draw_list.AddPolyline(points, getter.Count, col_line, ImDrawFlags_Closed, s.Spec.LineWeight);
#else
draw_list.AddPolyline(points, getter.Count, col_line, s.Spec.LineWeight, ImDrawFlags_Closed);
#endif
}
IM_FREE(points);

Expand Down
Loading