mirror of
https://github.com/gwm17/implot.git
synced 2024-11-13 22:48:50 -05:00
fix offsetandstride args...oops
This commit is contained in:
parent
cd4704fd52
commit
83cb14b54a
|
@ -1269,11 +1269,10 @@ void FillRange(ImVector<T>& buffer, int n, T vmin, T vmax) {
|
||||||
|
|
||||||
// Offsets and strides a data buffer
|
// Offsets and strides a data buffer
|
||||||
template <typename T>
|
template <typename T>
|
||||||
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);
|
idx = ImPosMod(offset + idx, count);
|
||||||
return *(const T*)(const void*)((const unsigned char*)data + (size_t)idx * stride);
|
return *(const T*)(const void*)((const unsigned char*)data + (size_t)idx * stride);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calculate histogram bin counts and widths
|
// Calculate histogram bin counts and widths
|
||||||
template <typename T>
|
template <typename T>
|
||||||
static inline void CalculateBins(const T* values, int count, ImPlotBin meth, const ImPlotRange& range, int& bins_out, double& width_out) {
|
static inline void CalculateBins(const T* values, int count, ImPlotBin meth, const ImPlotRange& range, int& bins_out, double& width_out) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user