diff --git a/implot3d.cpp b/implot3d.cpp index 409583a..c28f93c 100644 --- a/implot3d.cpp +++ b/implot3d.cpp @@ -461,7 +461,7 @@ void RenderLegend() { // Test hover (using the clamped rect so off-screen overflow does not register) // clang-format off - const ImGuiButtonFlags legend_button_flags = ImGuiButtonFlags_AllowOverlap + const ImGuiButtonFlags legend_button_flags = (ImGuiButtonFlags)ImGuiButtonFlags_AllowOverlap | ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_MouseButtonLeft @@ -2380,7 +2380,7 @@ void HandleInput(ImPlot3DPlot& plot) { ImGuiIO& IO = ImGui::GetIO(); // clang-format off - const ImGuiButtonFlags plot_button_flags = ImGuiButtonFlags_AllowOverlap + const ImGuiButtonFlags plot_button_flags = (ImGuiButtonFlags)ImGuiButtonFlags_AllowOverlap | ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_MouseButtonLeft diff --git a/implot3d.h b/implot3d.h index 3c9450d..e7451fd 100644 --- a/implot3d.h +++ b/implot3d.h @@ -370,7 +370,7 @@ enum ImPlot3DColormap_ { // spec.LineColor = ImVec4(1,0,0,1); // spec.LineWeight = 2.0f; // spec.Marker = ImPlot3DMarker_Circle; -// spec.Flags = ImPlot3DItemFlags_NoLegend | ImPlot3DLineFlags_Segments; +// spec.Flags = (ImPlot3DItemFlags)ImPlot3DItemFlags_NoLegend | ImPlot3DLineFlags_Segments; // ImPlot3D::PlotLine("MyLine", xs, ys, zs, 100, spec); // // 2. Inline using ImPlot3DProp,value pairs (order does NOT matter): @@ -379,7 +379,7 @@ enum ImPlot3DColormap_ { // ImPlot3DProp_LineColor, ImVec4(1,0,0,1), // ImPlot3DProp_LineWeight, 2.0f, // ImPlot3DProp_Marker, ImPlot3DMarker_Circle, -// ImPlot3DProp_Flags, ImPlot3DItemFlags_NoLegend | ImPlot3DLineFlags_Segments +// ImPlot3DProp_Flags, (ImPlot3DItemFlags)ImPlot3DItemFlags_NoLegend | ImPlot3DLineFlags_Segments // }); struct ImPlot3DSpec { ImVec4 LineColor = IMPLOT3D_AUTO_COL; // Line color; IMPLOT3D_AUTO_COL will use next Colormap color