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

Fix compile under MacOs

implot.cpp:3382:26: error: definition of variable with array type needs an explicit size or an initializer

Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
This commit is contained in:
ozlb 2020-06-12 23:09:58 +02:00 committed by GitHub
parent 7d02374665
commit be8b6e0b18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3379,7 +3379,7 @@ void ShowColormapScale(double scale_min, double scale_max, float height) {
void SetColormap(ImPlotColormap colormap, int samples) { void SetColormap(ImPlotColormap colormap, int samples) {
static int csizes[ImPlotColormap_COUNT] = {10,9,9,12,11,11,11,11,11,11}; static int csizes[ImPlotColormap_COUNT] = {10,9,9,12,11,11,11,11,11,11};
static OffsetCalculator<ImPlotCol_COUNT> coffs(csizes); static OffsetCalculator<ImPlotCol_COUNT> coffs(csizes);
static ImVec4 cdata[] { static ImVec4 cdata[] = {
// ImPlotColormap_Default // X11 Named Colors // ImPlotColormap_Default // X11 Named Colors
ImVec4(0.0f, 0.7490196228f, 1.0f, 1.0f), // Blues::DeepSkyBlue, ImVec4(0.0f, 0.7490196228f, 1.0f, 1.0f), // Blues::DeepSkyBlue,
ImVec4(1.0f, 0.0f, 0.0f, 1.0f), // Reds::Red, ImVec4(1.0f, 0.0f, 0.0f, 1.0f), // Reds::Red,