From 549b03bdc3ee147607c244bdabc14dab77dc0e86 Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Wed, 17 Feb 2016 23:01:42 -0500 Subject: [PATCH] Fix for delta lock zoom visuals --- src/visual/PrimaryGLContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/visual/PrimaryGLContext.cpp b/src/visual/PrimaryGLContext.cpp index ef166f3..f102878 100644 --- a/src/visual/PrimaryGLContext.cpp +++ b/src/visual/PrimaryGLContext.cpp @@ -80,7 +80,7 @@ void PrimaryGLContext::DrawDemodInfo(DemodulatorInstance *demod, RGBA4f color, l long long demodFreq = demod->getFrequency(); if (demod->isDeltaLock()) { - demodFreq = center_freq + demod->getDeltaLockOfs(); + demodFreq = wxGetApp().getFrequency() + demod->getDeltaLockOfs(); } float uxPos = (float) (demodFreq - (center_freq - srate / 2)) / (float) srate; @@ -282,7 +282,7 @@ void PrimaryGLContext::DrawDemod(DemodulatorInstance *demod, RGBA4f color, long long long demodFreq = demod->getFrequency(); if (demod->isDeltaLock()) { - demodFreq = center_freq + demod->getDeltaLockOfs(); + demodFreq = wxGetApp().getFrequency() + demod->getDeltaLockOfs(); } float uxPos = (float) (demodFreq - (center_freq - srate / 2)) / (float) srate;