We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e5e884 commit 538a306Copy full SHA for 538a306
implot_items.cpp
@@ -2327,8 +2327,8 @@ struct GetterHeatmapColMaj {
2327
{ }
2328
template <typename I> IMPLOT_INLINE RectC operator()(I idx) const {
2329
double val = (double)Values[idx];
2330
- const int r = idx % Cols;
2331
- const int c = idx / Cols;
+ const int r = idx % Rows;
+ const int c = idx / Rows;
2332
const ImPlotPoint p(XRef + HalfSize.x + c*Width, YRef + YDir * (HalfSize.y + r*Height));
2333
RectC rect;
2334
rect.Pos = p;
0 commit comments