mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-26 05:38:39 -05:00
Fix for delta lock zoom visuals
This commit is contained in:
parent
63917c95f3
commit
549b03bdc3
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user