diff --git a/implot.cpp b/implot.cpp index 19f71123..9239a39b 100644 --- a/implot.cpp +++ b/implot.cpp @@ -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) { diff --git a/implot_items.cpp b/implot_items.cpp index adea97ef..0f8e5099 100644 --- a/implot_items.cpp +++ b/implot_items.cpp @@ -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);