Mercurial > hg > svgui
diff layer/WaveformLayer.cpp @ 1352:4949061fcb8c zoom
Debug tweaks
author | Chris Cannam |
---|---|
date | Fri, 05 Oct 2018 09:59:41 +0100 |
parents | 13d03ae0c6e0 |
children | c2a3ac0a6688 |
line wrap: on
line diff
--- a/layer/WaveformLayer.cpp Mon Oct 01 15:48:20 2018 +0100 +++ b/layer/WaveformLayer.cpp Fri Oct 05 09:59:41 2018 +0100 @@ -33,7 +33,7 @@ #include <iostream> #include <cmath> -#define DEBUG_WAVEFORM_PAINT 1 +//#define DEBUG_WAVEFORM_PAINT 1 //#define DEBUG_WAVEFORM_PAINT_BY_PIXEL 1 using std::vector; @@ -733,7 +733,8 @@ QRect rect, int ch, const RangeVec &ranges, int blockSize, - sv_frame_t frame0, sv_frame_t frame1) + sv_frame_t frame0, + sv_frame_t frame1) const { int x0 = rect.left(); @@ -792,6 +793,8 @@ #ifdef DEBUG_WAVEFORM_PAINT SVCERR << "paint channel " << ch << ": frame0 = " << frame0 << ", frame1 = " << frame1 << ", blockSize = " << blockSize << ", have " << ranges.size() << " range blocks of which ours is index " << rangeix << " with " << ranges[rangeix].size() << " ranges in it" << endl; +#else + (void)frame1; // not actually used #endif for (int x = x0; x <= x1; ++x) {