diff --git a/Source/Processors/Visualization/LfpDisplayCanvas.cpp b/Source/Processors/Visualization/LfpDisplayCanvas.cpp index a87bd6bc667826ffad0d3cedec0edb57d14621c2..6e2487015013d0a8d5f3803233c71c50d51e5281 100755 --- a/Source/Processors/Visualization/LfpDisplayCanvas.cpp +++ b/Source/Processors/Visualization/LfpDisplayCanvas.cpp @@ -383,10 +383,7 @@ void LfpDisplay::refresh() if ((topBorder <= componentBottom && bottomBorder >= componentTop)) { - getChildComponent(i)->repaint(canvas->lastScreenBufferIndex, - 0, - canvas->screenBufferIndex, - getChildComponent(i)->getHeight()); + getChildComponent(i)->repaint(); //std::cout << i << std::endl; } @@ -434,6 +431,12 @@ LfpChannelDisplay::~LfpChannelDisplay() void LfpChannelDisplay::paint(Graphics& g) { + g.fillAll(Colours::grey); + + g.setColour(Colours::yellow); + + g.drawLine(canvas->screenBufferIndex, 0, canvas->screenBufferIndex, getHeight()); + if (isSelected) g.setColour(Colours::lightgrey); else @@ -443,6 +446,8 @@ void LfpChannelDisplay::paint(Graphics& g) int stepSize = 1; + + for (int i = 0; i < getWidth()-stepSize; i += stepSize) {