mirror of
https://github.com/gwm17/implot.git
synced 2024-11-23 02:38:53 -05:00
fix smaplecolormapu32
This commit is contained in:
parent
27bc59eb43
commit
04ae3728f8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user