|
|
|
@ -102,7 +102,7 @@ void RecordingDataMonitor::drawContents(TQPainter *painter)
|
|
|
|
|
internalDrawContents(*painter, true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void RecordingDataMonitor::internalDrawContents(TQPainter &painter, bool tqrepaintAll)
|
|
|
|
|
void RecordingDataMonitor::internalDrawContents(TQPainter &painter, bool repaintAll)
|
|
|
|
|
{
|
|
|
|
|
if (m_channels <= 0) return;
|
|
|
|
|
TQRect r = contentsRect();
|
|
|
|
@ -142,7 +142,7 @@ void RecordingDataMonitor::internalDrawContents(TQPainter &painter, bool tqrepai
|
|
|
|
|
|
|
|
|
|
m_pActiveBlocks[c] = m_channelsMax[c] ? (int)rint(nBlocks * (min_dB - dBMax) / min_dB) : 0;
|
|
|
|
|
|
|
|
|
|
if (!tqrepaintAll) {
|
|
|
|
|
if (!repaintAll) {
|
|
|
|
|
if (oldActiveBlocks > m_pActiveBlocks[c]) {
|
|
|
|
|
startBlock = m_pActiveBlocks[c];
|
|
|
|
|
endBlock = oldActiveBlocks - 1;
|
|
|
|
@ -165,7 +165,7 @@ void RecordingDataMonitor::internalDrawContents(TQPainter &painter, bool tqrepai
|
|
|
|
|
y += chHeight;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (tqrepaintAll) {
|
|
|
|
|
if (repaintAll) {
|
|
|
|
|
TQFont f("Helvetica");
|
|
|
|
|
painter.setPen (activePen);
|
|
|
|
|
f.setPixelSize(CHANNEL_H_MIN);
|
|
|
|
|