@@ -444,7 +444,8 @@ void LfpDisplay::refresh()
444444 totalPixelsToFill = canvasSplit->screenBufferWidth - fillfrom + fillto;
445445 }
446446
447- std::cout << fillfrom << " : " << fillto << " ::: " << " totalPixelsToFill: " << totalPixelsToFill << std::endl;
447+ // if (totalPixelsToFill > 0)
448+ // std::cout << fillfrom << " : " << fillto << " ::: " << "totalPixelsToFill: " << totalPixelsToFill << std::endl;
448449
449450 int topBorder = viewport->getViewPositionY ();
450451 int bottomBorder = viewport->getViewHeight () + topBorder;
@@ -493,11 +494,11 @@ void LfpDisplay::refresh()
493494 fillfrom_local = lastBitmapIndex;
494495 fillto_local = (lastBitmapIndex + totalPixelsToFill) % totalXPixels;
495496
496- /* if (fillto != 0)
497- {
498- std::cout << fillfrom << " : " << fillto << " ::: " <<
499- fillfrom_local << " : " << fillto_local << " :: " << totalPixelsToFill << " ::: " << totalXPixels << std::endl;
500- } */
497+ // if (fillto != 0)
498+ // {
499+ // std::cout << fillfrom << " : " << fillto << " ::: " <<
500+ // fillfrom_local << " : " << fillto_local << " :: " << totalPixelsToFill << " ::: " << totalXPixels << std::endl;
501+ // }
501502
502503
503504 for (int i = 0 ; i < numChans; i++)
@@ -591,6 +592,7 @@ void LfpDisplay::refresh()
591592
592593void LfpDisplay::setRange (float r, ContinuousChannel::Type type)
593594{
595+
594596 range[type] = r;
595597
596598 if (channels.size () > 0 )
@@ -601,7 +603,6 @@ void LfpDisplay::setRange(float r, ContinuousChannel::Type type)
601603 if (channels[i]->getType () == type)
602604 channels[i]->setRange (range[type]);
603605 }
604- canvasSplit->fullredraw = true ; // issue full redraw
605606
606607 if (displayIsPaused)
607608 {
@@ -840,8 +841,6 @@ void LfpDisplay::mouseWheelMove(const MouseEvent& e, const MouseWheelDetails&
840841 viewport->setViewPosition (oldX,oldY+scrollBy); // set back to previous position plus offset
841842
842843 options->setSpreadSelection (newHeight); // update combobox
843-
844- canvasSplit->fullredraw = true ;// issue full redraw - scrolling without modifier doesnt require a full redraw
845844 }
846845 else
847846 {
@@ -864,20 +863,15 @@ void LfpDisplay::mouseWheelMove(const MouseEvent& e, const MouseWheelDetails&
864863 }
865864
866865 options->setRangeSelection (h); // update combobox
867- canvasSplit->fullredraw = true ; // issue full redraw - scrolling without modifier doesnt require a full redraw
868-
866+
869867 }
870868 else // just scroll
871869 {
872870 // passes the event up to the viewport so the screen scrolls
873871 if (viewport != nullptr && e.eventComponent == this ) // passes only if it's not a listening event
874872 {
875873 viewport->mouseWheelMove (e.getEventRelativeTo (canvasSplit), wheel);
876-
877- // canvasSplit->syncDisplayBuffer();
878874 }
879-
880-
881875 }
882876
883877 }
@@ -888,8 +882,6 @@ void LfpDisplay::mouseWheelMove(const MouseEvent& e, const MouseWheelDetails&
888882 scrollY = viewport->getViewPositionY ();
889883 }
890884
891- // refresh(); // doesn't seem to be needed now that channels draw to bitmap
892-
893885}
894886
895887void LfpDisplay::toggleSingleChannel (LfpChannelTrack drawableChannel)
0 commit comments