Skip to content

Commit

Permalink
LfpDisplayCanvas: sync display buffer when syncing displays
Browse files Browse the repository at this point in the history
  • Loading branch information
anjaldoshi committed May 14, 2024
1 parent 5bd55a9 commit fb17884
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -755,8 +755,9 @@ LfpDisplaySplitter::LfpDisplaySplitter(LfpDisplayNode* node,

viewport->setViewedComponent(lfpDisplay.get(), false);
viewport->setScrollBarsShown(true, false);

scrollBarThickness = viewport->getScrollBarThickness();

scrollBarThickness = 15;
viewport->setScrollBarThickness(scrollBarThickness);

addAndMakeVisible(timescale.get());
addAndMakeVisible(viewport.get());
Expand Down Expand Up @@ -1028,7 +1029,6 @@ void LfpDisplaySplitter::updateSettings()
isLoading = false;

syncDisplay(); // sets lastBitmapIndex to 0
syncDisplayBuffer(); // sets displayBufferIndex to 0

isUpdating = false;

Expand Down Expand Up @@ -1136,7 +1136,7 @@ void LfpDisplaySplitter::syncDisplay()

lfpDisplay->sync();

//syncDisplayBuffer();
syncDisplayBuffer();

}

Expand Down Expand Up @@ -1555,7 +1555,6 @@ void LfpDisplaySplitter::setTimebase(float t)
}

syncDisplay();
syncDisplayBuffer();
refreshScreenBuffer();

reachedEnd = true;
Expand Down

0 comments on commit fb17884

Please sign in to comment.