From 14ba996dadc2209d5efae0512ad6acd8ee154f79 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 27 Nov 2021 11:13:39 -0500 Subject: [PATCH] Fix pixel offset of Scope min/max plot. --- src/Scope.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Scope.cpp b/src/Scope.cpp index 64e160c..5e22c34 100644 --- a/src/Scope.cpp +++ b/src/Scope.cpp @@ -251,7 +251,7 @@ struct ScopeDisplay : LedDisplay { p.x = (float) i / (BUFFER_SIZE - 1); p.y = (max + offset) * gain * -0.5f + 0.5f; p = b.interpolate(p); - p.y += 1.0; + p.y -= 1.0; if (i == 0) nvgMoveTo(args.vg, p.x, p.y); else @@ -268,7 +268,7 @@ struct ScopeDisplay : LedDisplay { p.x = (float) i / (BUFFER_SIZE - 1); p.y = (min + offset) * gain * -0.5f + 0.5f; p = b.interpolate(p); - p.y -= 1.0; + p.y += 1.0; nvgLineTo(args.vg, p.x, p.y); } nvgClosePath(args.vg);