Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions implot3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions implot3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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
Expand Down
Loading