Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 407:4cb5cd9ccac7 sv1-v1.3 sv1-v1.3rc1
* Updates for 1.3
author | Chris Cannam |
---|---|
date | Thu, 10 Jul 2008 12:50:56 +0000 |
parents | 4f0f273c8f82 |
children | 0acf803e2c79 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Mon Jul 07 16:49:53 2008 +0000 +++ b/layer/SpectrogramLayer.cpp Thu Jul 10 12:50:56 2008 +0000 @@ -590,7 +590,9 @@ return; } int x = v->getXForFrame(startFrame); +#ifdef DEBUG_SPECTROGRAM_REPAINT std::cerr << "clipping from 0 to " << x-1 << std::endl; +#endif if (x > 1) { i->second.validArea &= QRect(0, 0, x-1, v->height()); @@ -2425,8 +2427,10 @@ Profiler profiler2("SpectrogramLayer::paint: draw image"); if (recreateWholePixmapCache) { +#ifdef DEBUG_SPECTROGRAM_REPAINT std::cerr << "Recreating pixmap cache: width = " << v->width() << ", height = " << h << std::endl; +#endif cache.pixmap = QPixmap(v->width(), h); }