From 22cf50cc44e9a4473e32360132756c0b708b99bb Mon Sep 17 00:00:00 2001 From: Evan Pezent Date: Tue, 5 May 2020 13:41:18 -0500 Subject: [PATCH] hard code color of pie labels --- implot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/implot.cpp b/implot.cpp index f9b3fe4..3bdfebe 100644 --- a/implot.cpp +++ b/implot.cpp @@ -2181,8 +2181,8 @@ void PlotPieChart(const char** label_ids, float* values, int count, const ImVec2 ImVec2 size = CalcTextSize(buffer); float angle = a0 + (a1 - a0) * 0.5f; ImVec2 pos = PlotToPixels(center.x + 0.5f * radius * cos(angle), center.y + 0.5f * radius * sin(angle)); - DrawList.AddText(pos - size * 0.5f + ImVec2(1,1), gp.Col_Bg, buffer); - DrawList.AddText(pos - size * 0.5f, GetColorU32(ImGuiCol_Text), buffer); + DrawList.AddText(pos - size * 0.5f + ImVec2(1,1), IM_COL32(0,0,0,255), buffer); + DrawList.AddText(pos - size * 0.5f, IM_COL32(255,255,255,255), buffer); } } a0 = a1;