Browse Source

Use nvgGlobalTint() instead of nvgGlobalAlpha() for un-tinting lights.

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

+ 1
- 1
src/Scope.cpp View File

@@ -302,7 +302,7 @@ struct ScopeDisplay : TransparentWidget {
return; return;


// Disable tinting when rack brightness is decreased // Disable tinting when rack brightness is decreased
nvgGlobalAlpha(args.vg, 1.0);
nvgGlobalTint(args.vg, color::WHITE);


float gainX = std::pow(2.f, std::round(module->params[Scope::X_SCALE_PARAM].getValue())) / 10.f; float gainX = std::pow(2.f, std::round(module->params[Scope::X_SCALE_PARAM].getValue())) / 10.f;
float gainY = std::pow(2.f, std::round(module->params[Scope::Y_SCALE_PARAM].getValue())) / 10.f; float gainY = std::pow(2.f, std::round(module->params[Scope::Y_SCALE_PARAM].getValue())) / 10.f;


Loading…
Cancel
Save