From e00f3e7cac55b39c6efc48889626b453665e28b4 Mon Sep 17 00:00:00 2001 From: jsiegle <jsiegle@mit.edu> Date: Sat, 6 Apr 2013 19:07:08 -0400 Subject: [PATCH] Fix issues with drawing LfpDisplay --- .../Processors/Visualization/LfpDisplayCanvas.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Source/Processors/Visualization/LfpDisplayCanvas.cpp b/Source/Processors/Visualization/LfpDisplayCanvas.cpp index a87bd6bc6..6e2487015 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) { -- GitLab