We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3be5da1 + 0e1269e commit b3bb1a9Copy full SHA for b3bb1a9
1 file changed
Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp
@@ -2449,8 +2449,12 @@ void LfpDisplay::paint(Graphics& g)
2449
2450
void LfpDisplay::refresh()
2451
{
2452
- if (true)
2453
- {
+ // Ensure the lfpChannelBitmap has been initialized
+ if (lfpChannelBitmap.isNull())
2454
+ {
2455
+ resized();
2456
+ }
2457
+
2458
// X-bounds of this update
2459
int fillfrom = canvas->lastScreenBufferIndex[0];
2460
int fillto = (canvas->screenBufferIndex[0]);
@@ -2523,8 +2527,6 @@ void LfpDisplay::refresh()
2523
2527
}
2524
2528
2525
2529
canvas->fullredraw = false;
2526
- }
-
2530
2531
2532
0 commit comments