1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-23 02:38:53 -05:00

fix smaplecolormapu32

This commit is contained in:
epezent 2021-04-07 20:02:35 -07:00
parent 27bc59eb43
commit 04ae3728f8

View File

@ -3404,7 +3404,7 @@ ImU32 SampleColormapU32(float t, ImPlotColormap cmap) {
ImPlotContext& gp = *GImPlot;
cmap = cmap == IMPLOT_AUTO ? gp.Style.Colormap : cmap;
IM_ASSERT_USER_ERROR(cmap >= 0 && cmap < gp.ColormapData.Count, "Invalid colormap index!");
return gp.ColormapData.LerpTable(gp.Style.Colormap,t);
return gp.ColormapData.LerpTable(cmap, t);
}
ImVec4 SampleColormap(float t, ImPlotColormap cmap) {