Skip to content
Snippets Groups Projects
Commit d7ac3d5e authored by jvoigts's avatar jvoigts
Browse files

cleaned up colors a bit more

parent c101d5ec
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
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