Fix for delta lock zoom visuals

This commit is contained in:
Charles J. Cliffe 2016-02-17 23:01:42 -05:00
parent 63917c95f3
commit 549b03bdc3

View File

@ -80,7 +80,7 @@ void PrimaryGLContext::DrawDemodInfo(DemodulatorInstance *demod, RGBA4f color, l
long long demodFreq = demod->getFrequency(); long long demodFreq = demod->getFrequency();
if (demod->isDeltaLock()) { if (demod->isDeltaLock()) {
demodFreq = center_freq + demod->getDeltaLockOfs(); demodFreq = wxGetApp().getFrequency() + demod->getDeltaLockOfs();
} }
float uxPos = (float) (demodFreq - (center_freq - srate / 2)) / (float) srate; 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(); long long demodFreq = demod->getFrequency();
if (demod->isDeltaLock()) { if (demod->isDeltaLock()) {
demodFreq = center_freq + demod->getDeltaLockOfs(); demodFreq = wxGetApp().getFrequency() + demod->getDeltaLockOfs();
} }
float uxPos = (float) (demodFreq - (center_freq - srate / 2)) / (float) srate; float uxPos = (float) (demodFreq - (center_freq - srate / 2)) / (float) srate;