Can now spawn infinite(?) demodulators by holding shift

This commit is contained in:
Charles J. Cliffe
2014-12-10 18:52:24 -05:00
parent 380145fdaa
commit f2c59fedd1
3 changed files with 39 additions and 21 deletions
+7 -2
View File
@@ -189,12 +189,17 @@ void PrimaryGLContext::DrawDemod(DemodulatorInstance *demod, float r, float g, f
}
void PrimaryGLContext::DrawFreqSelector(float uxPos, float r, float g, float b) {
DemodulatorInstance *demod = wxGetApp().getDemodTest();
DemodulatorInstance *demod = wxGetApp().getDemodMgr().getLastActiveDemodulator();
int bw = 0;
if (!demod) {
return;
bw = 200000;
} else {
bw = demod->getParams().bandwidth;
}
glDisable(GL_DEPTH_TEST);
glDisable(GL_TEXTURE_2D);