diff --git a/implot_internal.h b/implot_internal.h index 5da0689..065c2d0 100644 --- a/implot_internal.h +++ b/implot_internal.h @@ -1269,11 +1269,10 @@ void FillRange(ImVector& buffer, int n, T vmin, T vmax) { // Offsets and strides a data buffer template -static inline T OffsetAndStride(const T* data, int idx, int , int , int stride) { +static inline T OffsetAndStride(const T* data, int idx, int count, int offset, int stride) { idx = ImPosMod(offset + idx, count); return *(const T*)(const void*)((const unsigned char*)data + (size_t)idx * stride); } - // Calculate histogram bin counts and widths template static inline void CalculateBins(const T* values, int count, ImPlotBin meth, const ImPlotRange& range, int& bins_out, double& width_out) {