Skip to content

Commit b6d3d3e

Browse files
committed
Fix drawing bug when switching streams
1 parent 138496f commit b6d3d3e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,7 @@ void LfpDisplaySplitter::updateSettings()
972972
isLoading = false;
973973

974974
syncDisplay();
975+
syncDisplayBuffer();
975976

976977
isUpdating = false;
977978

@@ -1146,7 +1147,7 @@ void LfpDisplaySplitter::updateScreenBuffer()
11461147
{
11471148
//std::cout << "No new samples." << std::endl;
11481149
lastScreenBufferIndex.set(channel, screenBufferIndex[channel]);
1149-
return;
1150+
continue;
11501151
}
11511152

11521153
if (newSamples < 0)

0 commit comments

Comments
 (0)