Skip to content

Commit 623e69c

Browse files
committed
fix: apply FillAlpha consistently in shaded const color paths
1 parent e31b6af commit 623e69c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

implot_items.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ void PlotLineEx(const char* label_id, const _Getter& getter, const ImPlotSpec& s
19171917
RenderPrimitives3<RendererShaded>(getter,getter2,color_getter);
19181918
} else {
19191919
const ImU32 col_fill = ImGui::GetColorU32(s.Spec.FillColor);
1920-
GetterConstColor color_getter(col_fill);
1920+
GetterConstColor color_getter(col_fill, s.Spec.FillAlpha);
19211921
RenderPrimitives3<RendererShaded>(getter,getter2,color_getter);
19221922
}
19231923
}
@@ -2270,7 +2270,7 @@ void PlotShadedEx(const char* label_id, const Getter1& getter1, const Getter2& g
22702270
RenderPrimitives3<RendererShaded>(getter1,getter2,color_getter);
22712271
} else {
22722272
const ImU32 col = ImGui::GetColorU32(s.Spec.FillColor);
2273-
GetterConstColor color_getter(col);
2273+
GetterConstColor color_getter(col, s.Spec.FillAlpha);
22742274
RenderPrimitives3<RendererShaded>(getter1,getter2,color_getter);
22752275
}
22762276
}

0 commit comments

Comments
 (0)