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) if (layer != 1)
return; return;


// Background lines
drawBackground(args);

if (!module) if (!module)
return; return;


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

// Background lines
drawBackground(args);
} }


// Calculate and draw stats // Calculate and draw stats


Loading…
Cancel
Save