From d7ac3d5e6ae8dd061fe54c8f14a8175be52b51ec Mon Sep 17 00:00:00 2001
From: jvoigts <jvoigts@mit.edu>
Date: Mon, 21 Mar 2016 14:30:34 -0400
Subject: [PATCH] cleaned up colors a bit more

---
 Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp b/Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp
index db91e65ac..bbb0c1b5a 100644
--- a/Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp
+++ b/Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp
@@ -2238,7 +2238,7 @@ void LfpChannelDisplay::pxPaint()
                     
                     for (int s = 0; s <= samplerange; s ++)  // plot histogram one pixel per bin
                     {
-                        float a=15*((rangeHist[s])/(sampleCountThisPixel)) *(2*(0.5+canvas->histogramParameterA));
+                        float a=15*((rangeHist[s])/(sampleCountThisPixel)) *(2*(0.2+canvas->histogramParameterA));
                         if (a>1.0f) {a=1.0f;};
                         if (a<0.0f) {a=0.0f;};
                         
@@ -2330,12 +2330,10 @@ void LfpChannelDisplay::pxPaint()
                 if(saturateWarningHi || saturateWarningLo) {
                     
                     
-                    
-                    
                     for (int k=jfrom_wholechannel_almost; k<=jto_wholechannel_almost; k++){ // draw line
                         Colour thiscolour=Colour(255,0,0);
-                        if (fmod((i+k)*5,100)>50){
-                            thiscolour=Colour(0,0,0);
+                        if (fmod((i+k),100)>50){
+                            thiscolour=Colour(255,255,255);
                         }
                         bdLfpChannelBitmap.setPixelColour(i,k,thiscolour);
                     };
@@ -2353,8 +2351,7 @@ void LfpChannelDisplay::pxPaint()
                     //}
                 }
                 
-                
-                saturateWarningHi=false;
+                saturateWarningHi=false; // we likely just need one of this because for this warning we dont care if its saturating on the positive or negative side
                 saturateWarningLo=false;
             }
 
-- 
GitLab