Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 1123:343887ac6766 spectrogram-minor-refactor
Some tidying
author | Chris Cannam |
---|---|
date | Fri, 22 Jul 2016 14:42:36 +0100 |
parents | 94370157b265 |
children | 50324fca1328 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Fri Jul 22 13:56:24 2016 +0100 +++ b/layer/SpectrogramLayer.cpp Fri Jul 22 14:42:36 2016 +0100 @@ -1495,10 +1495,7 @@ int viewId = v->getId(); if (!renderer->geometryChanged(v)) { - cerr << "geometry unchanged, extending view mag range" << endl; magRange = m_viewMags[viewId]; - } else { - cerr << "geometry changed!! creating new view mag range" << endl; } if (m_synchronous) { @@ -1513,12 +1510,8 @@ << ", mag range in this paint: " << result.range.getMin() << " -> " << result.range.getMax() << endl; - //!!! - QRect uncached = renderer->getLargestUncachedRect(v); if (uncached.width() > 0) { - cerr << "updating rect at " << uncached.x() << " width " - << uncached.width() << endl; v->updatePaintRect(uncached); } } @@ -1526,11 +1519,9 @@ magRange.sample(result.range); if (magRange.isSet()) { - if (m_viewMags[viewId] == magRange) { - cerr << "mag range unchanged" << endl; - } else { - cerr << "mag range changed!!" << endl; + if (!(m_viewMags[viewId] == magRange)) { m_viewMags[viewId] = magRange; + //!!! now need to do the normalise-visible thing } }