mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-26 13:48:38 -05:00
Fix broken demod view zoom
This commit is contained in:
parent
b2e8cf0482
commit
dd9bc9aa2c
@ -369,12 +369,12 @@ void AppFrame::OnIdle(wxIdleEvent& event) {
|
||||
demod->setDemodulatorType(dSelection);
|
||||
}
|
||||
|
||||
unsigned int demodBw = (unsigned int) ceil((float) demod->getParams().bandwidth * 2.5);
|
||||
unsigned int demodBw = (unsigned int) ceil((float) demod->getBandwidth() * 2.5);
|
||||
if (demodBw > wxGetApp().getSampleRate() / 2) {
|
||||
demodBw = wxGetApp().getSampleRate() / 2;
|
||||
}
|
||||
if (demodBw < 80000) {
|
||||
demodBw = 80000;
|
||||
if (demodBw < 50000) {
|
||||
demodBw = 50000;
|
||||
}
|
||||
demodWaterfallCanvas->setBandwidth(demodBw);
|
||||
demodSpectrumCanvas->setBandwidth(demodBw);
|
||||
|
Loading…
Reference in New Issue
Block a user