Mercurial > hg > svgui
comparison layer/SpectrogramLayer.cpp @ 1038:6d4fa45a271d spectrogram-minor-refactor
Comment
author | Chris Cannam |
---|---|
date | Tue, 02 Feb 2016 15:34:39 +0000 |
parents | 6f7a471826d1 |
children | bfce7940c017 |
comparison
equal
deleted
inserted
replaced
1037:6f7a471826d1 | 1038:6d4fa45a271d |
---|---|
1734 | 1734 |
1735 if (!cache.isValid()) { | 1735 if (!cache.isValid()) { |
1736 if (!m_synchronous) { | 1736 if (!m_synchronous) { |
1737 // When rendering the whole thing, start from somewhere near | 1737 // When rendering the whole thing, start from somewhere near |
1738 // the middle so that the region of interest appears first | 1738 // the middle so that the region of interest appears first |
1739 | |
1740 //!!! (perhaps we should have some cunning test to avoid | |
1741 //!!! doing this if past repaints have appeared fast | |
1742 //!!! enough to do the whole width in one shot) | |
1739 if (x0 == 0 && x1 == v->getPaintWidth()) { | 1743 if (x0 == 0 && x1 == v->getPaintWidth()) { |
1740 x0 = int(x1 * 0.3); | 1744 x0 = int(x1 * 0.3); |
1741 } | 1745 } |
1742 } | 1746 } |
1743 } else { | 1747 } else { |