# HG changeset patch # User Chris Cannam # Date 1172598712 0 # Node ID b6af2eb00780c536bdbfbd2f5597cf844debdd8c # Parent 8495187c13ce639b76d3c35796182febba472338 ... diff -r 8495187c13ce -r b6af2eb00780 layer/SpectrogramLayer.cpp --- a/layer/SpectrogramLayer.cpp Tue Feb 27 12:51:38 2007 +0000 +++ b/layer/SpectrogramLayer.cpp Tue Feb 27 17:51:52 2007 +0000 @@ -2099,7 +2099,9 @@ if (overallMag.sample(mag)) { //!!! scaling would change here overallMagChanged = true; +#ifdef DEBUG_SPECTROGRAM_REPAINT std::cerr << "Overall mag changed (again?) at column " << s << ", to [" << overallMag.getMin() << "->" << overallMag.getMax() << "]" << std::endl; +#endif } } } @@ -2123,9 +2125,13 @@ if (overallMagChanged) { m_viewMags[v] = overallMag; +#ifdef DEBUG_SPECTROGRAM_REPAINT std::cerr << "Overall mag is now [" << m_viewMags[v].getMin() << "->" << m_viewMags[v].getMax() << "] - will be updating" << std::endl; +#endif } else { +#ifdef DEBUG_SPECTROGRAM_REPAINT std::cerr << "Overall mag unchanged at [" << m_viewMags[v].getMin() << "->" << m_viewMags[v].getMax() << "]" << std::endl; +#endif } Profiler profiler2("SpectrogramLayer::paint: draw image", true);