From 09dbc5cf85eb9f307492e3f6603570b99079e6c4 Mon Sep 17 00:00:00 2001
From: jsiegle <jsiegle@mit.edu>
Date: Tue, 4 Jun 2013 20:37:04 -0400
Subject: [PATCH] Extend yellow line to bottom of LfpDisplay

---
 Source/Processors/Visualization/LfpDisplayCanvas.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Source/Processors/Visualization/LfpDisplayCanvas.cpp b/Source/Processors/Visualization/LfpDisplayCanvas.cpp
index b6f408b1a..a1ea23d11 100755
--- a/Source/Processors/Visualization/LfpDisplayCanvas.cpp
+++ b/Source/Processors/Visualization/LfpDisplayCanvas.cpp
@@ -685,7 +685,7 @@ int LfpDisplay::getChannelHeight()
         // 
         // this should also scroll to keep the selected channel at a constant y!
         //
-        int h= getChannelHeight();
+        int h = getChannelHeight();
         if (wheel.deltaY>0){
             setChannelHeight(h+1);            
         } else{
@@ -711,6 +711,7 @@ int LfpDisplay::getChannelHeight()
     }
 
     canvas->fullredraw = true;//issue full redraw 
+
     refresh();
 
  }
@@ -774,7 +775,7 @@ void LfpChannelDisplay::paint(Graphics& g)
     //g.fillAll(Colours::grey);
 
     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.drawLine(canvas->lastScreenBufferIndex, 0, canvas->lastScreenBufferIndex, getHeight()-channelOverlap);
-- 
GitLab