Skip to content

Commit

Permalink
Implot fixes on upgraded version of imgui
Browse files Browse the repository at this point in the history
  • Loading branch information
kecho committed Dec 21, 2023
1 parent 6aa0baf commit f77817c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/pymodules/gpu/ImplotBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,12 @@ PyObject* plotShaded(PyObject* self, PyObject* vargs, PyObject* kwds)
if (valuesView.itemsize == sizeof(float))
{
float* values = (float*)valuesView.buf;
ImPlot::PlotShaded(label, values, values + 1, count, yref, offset, 2 * sizeof(float));
ImPlot::PlotShaded(label, values, values + 1, count, yref, 0, offset, 2 * sizeof(float));
}
else if (valuesView.itemsize == sizeof(double))
{
double* values = (double*)valuesView.buf;
ImPlot::PlotShaded(label, values, values + 1, count, (double)yref, offset, 2 * sizeof(double));
ImPlot::PlotShaded(label, values, values + 1, count, (double)yref, 0, offset, 2 * sizeof(double));
}

PyBuffer_Release(&valuesView);
Expand Down

0 comments on commit f77817c

Please sign in to comment.