comparison layer/Colour3DPlotRenderer.cpp @ 1133:b4b155cfd8b4 spectrogram-minor-refactor

Fix vertical zoom/scroll in colour 3d plot layer
author Chris Cannam
date Tue, 02 Aug 2016 11:42:24 +0100
parents ee98d587cd1a
children 628cd329c241
comparison
equal deleted inserted replaced
1132:745a868f0abf 1133:b4b155cfd8b4
328 int sh = model->getHeight(); 328 int sh = model->getHeight();
329 329
330 const int buflen = 40; 330 const int buflen = 40;
331 char labelbuf[buflen]; 331 char labelbuf[buflen];
332 332
333 int minbin = 0; //!!! 333 int minbin = m_sources.verticalBinLayer->getIBinForY(v, h);
334 int maxbin = sh - 1; //!!! 334 int maxbin = m_sources.verticalBinLayer->getIBinForY(v, 0) + 1;
335 335
336 int psx = -1; 336 int psx = -1;
337 337
338 vector<float> preparedColumn; 338 vector<float> preparedColumn;
339 339
340 int modelWidth = model->getWidth(); 340 int modelWidth = model->getWidth();