Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
406:b83db9792d11 | 407:4cb5cd9ccac7 |
---|---|
588 std::cerr << "Modified start frame is off right of view" << std::endl; | 588 std::cerr << "Modified start frame is off right of view" << std::endl; |
589 #endif | 589 #endif |
590 return; | 590 return; |
591 } | 591 } |
592 int x = v->getXForFrame(startFrame); | 592 int x = v->getXForFrame(startFrame); |
593 #ifdef DEBUG_SPECTROGRAM_REPAINT | |
593 std::cerr << "clipping from 0 to " << x-1 << std::endl; | 594 std::cerr << "clipping from 0 to " << x-1 << std::endl; |
595 #endif | |
594 if (x > 1) { | 596 if (x > 1) { |
595 i->second.validArea &= | 597 i->second.validArea &= |
596 QRect(0, 0, x-1, v->height()); | 598 QRect(0, 0, x-1, v->height()); |
597 } else { | 599 } else { |
598 i->second.validArea = QRect(); | 600 i->second.validArea = QRect(); |
2423 outerprof.end(); | 2425 outerprof.end(); |
2424 | 2426 |
2425 Profiler profiler2("SpectrogramLayer::paint: draw image"); | 2427 Profiler profiler2("SpectrogramLayer::paint: draw image"); |
2426 | 2428 |
2427 if (recreateWholePixmapCache) { | 2429 if (recreateWholePixmapCache) { |
2430 #ifdef DEBUG_SPECTROGRAM_REPAINT | |
2428 std::cerr << "Recreating pixmap cache: width = " << v->width() | 2431 std::cerr << "Recreating pixmap cache: width = " << v->width() |
2429 << ", height = " << h << std::endl; | 2432 << ", height = " << h << std::endl; |
2433 #endif | |
2430 cache.pixmap = QPixmap(v->width(), h); | 2434 cache.pixmap = QPixmap(v->width(), h); |
2431 } | 2435 } |
2432 | 2436 |
2433 if (w > 0) { | 2437 if (w > 0) { |
2434 #ifdef DEBUG_SPECTROGRAM_REPAINT | 2438 #ifdef DEBUG_SPECTROGRAM_REPAINT |