Skip to content

Commit

Permalink
Fix drawing of black areas in waterfall
Browse files Browse the repository at this point in the history
  • Loading branch information
argilo committed Oct 1, 2023
1 parent 2ee9faf commit 2a4bc1d
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 2a4bc1d

Please sign in to comment.