Browse Source

Draw Scope background even if module is NULL.

tags/v2.0.1
Andrew Belt 3 years ago
parent
commit
f723765929
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/Scope.cpp

+ 3
- 3
src/Scope.cpp View File

@@ -403,6 +403,9 @@ struct ScopeDisplay : LedDisplay {
if (layer != 1)
return;

// Background lines
drawBackground(args);

if (!module)
return;

@@ -445,9 +448,6 @@ struct ScopeDisplay : LedDisplay {
float trigThreshold = module->params[Scope::TRIG_PARAM].getValue();
trigThreshold = (trigThreshold + offsetX) * gainX;
drawTrig(args, trigThreshold);

// Background lines
drawBackground(args);
}

// Calculate and draw stats


Loading…
Cancel
Save