Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 137:10a82b2bbb8b
* experiment with finer zoom level changes when using h thumbwheel
author | Chris Cannam |
---|---|
date | Tue, 22 Aug 2006 14:18:28 +0000 |
parents | a859b87162ca |
children | 0f1ac9562c76 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Mon Aug 21 16:26:35 2006 +0000 +++ b/layer/SpectrogramLayer.cpp Tue Aug 22 14:18:28 2006 +0000 @@ -1979,6 +1979,10 @@ fft->suspendWrites(); +#ifdef DEBUG_SPECTROGRAM_REPAINT + std::cerr << (float(v->getFrameForX(1) - v->getFrameForX(0)) / increment) << " bins per pixel" << std::endl; +#endif + for (int x = 0; x < w; ++x) { for (int y = 0; y < h; ++y) { @@ -2112,6 +2116,8 @@ std::cerr << "Overall mag unchanged at [" << m_viewMags[v].getMin() << "->" << m_viewMags[v].getMax() << "]" << std::endl; } + Profiler profiler2("SpectrogramLayer::paint: draw image", true); + paint.drawImage(x0, y0, m_drawBuffer, 0, 0, w, h); if (recreateWholePixmapCache) {