Skip to content

Commit

Permalink
Merge pull request #1291 from gqrx-sdr/fix-black-areas
Browse files Browse the repository at this point in the history
Fix drawing of black areas in waterfall
  • Loading branch information
argilo authored Oct 1, 2023
2 parents 2ee9faf + 2a4bc1d commit b0662a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qtgui/plotter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1421,8 +1421,8 @@ void CPlotter::draw(bool newData)
// draw new line of fft data at top of waterfall bitmap
// draw black areas where data will not be draw
painter1.setPen(QPen(Qt::black));
painter1.drawRect(QRectF(0.0, 0.0, xmin, 1.0));
painter1.drawRect(QRectF(xmax, 0.0, w - xmax, 1.0));
painter1.drawLine(0.0, 0.0, xmin - 1, 0.0);
painter1.drawLine(xmax, 0.0, w - 1, 0.0);

const bool useWfBuf = msec_per_wfline > 0;
float _lineFactor;
Expand Down

0 comments on commit b0662a6

Please sign in to comment.