Skip to content
Snippets Groups Projects
Commit 09dbc5cf authored by jsiegle's avatar jsiegle
Browse files

Extend yellow line to bottom of LfpDisplay

parent 8b42e667
No related branches found
No related tags found
No related merge requests found
...@@ -685,7 +685,7 @@ int LfpDisplay::getChannelHeight() ...@@ -685,7 +685,7 @@ int LfpDisplay::getChannelHeight()
// //
// this should also scroll to keep the selected channel at a constant y! // this should also scroll to keep the selected channel at a constant y!
// //
int h= getChannelHeight(); int h = getChannelHeight();
if (wheel.deltaY>0){ if (wheel.deltaY>0){
setChannelHeight(h+1); setChannelHeight(h+1);
} else{ } else{
...@@ -711,6 +711,7 @@ int LfpDisplay::getChannelHeight() ...@@ -711,6 +711,7 @@ int LfpDisplay::getChannelHeight()
} }
canvas->fullredraw = true;//issue full redraw canvas->fullredraw = true;//issue full redraw
refresh(); refresh();
} }
...@@ -774,7 +775,7 @@ void LfpChannelDisplay::paint(Graphics& g) ...@@ -774,7 +775,7 @@ void LfpChannelDisplay::paint(Graphics& g)
//g.fillAll(Colours::grey); //g.fillAll(Colours::grey);
g.setColour(Colours::yellow); // draw most recent drawn sample position g.setColour(Colours::yellow); // draw most recent drawn sample position
g.drawLine(canvas->screenBufferIndex+1, 0, canvas->screenBufferIndex+1, getHeight()-channelOverlap); g.drawLine(canvas->screenBufferIndex+1, 0, canvas->screenBufferIndex+1, getHeight());
//g.setColour(Colours::red); // draw oldest drawn sample position //g.setColour(Colours::red); // draw oldest drawn sample position
//g.drawLine(canvas->lastScreenBufferIndex, 0, canvas->lastScreenBufferIndex, getHeight()-channelOverlap); //g.drawLine(canvas->lastScreenBufferIndex, 0, canvas->lastScreenBufferIndex, getHeight()-channelOverlap);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment