mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-26 13:48:38 -05:00
Fix for being unable to set maximum gain
This commit is contained in:
parent
1b491093cb
commit
cec4f7aed1
@ -112,7 +112,7 @@ void GainCanvas::SetLevel() {
|
||||
if (panelHit >= 0) {
|
||||
gainInfo[panelHit]->levelPanel.setSize(1.0, hitResult.y);
|
||||
gainInfo[panelHit]->levelPanel.setPosition(0.0, (-1.0+(hitResult.y)));
|
||||
gainInfo[panelHit]->current = gainInfo[panelHit]->low+(hitResult.y * (gainInfo[panelHit]->high-gainInfo[panelHit]->low));
|
||||
gainInfo[panelHit]->current = round(gainInfo[panelHit]->low+(hitResult.y * (gainInfo[panelHit]->high-gainInfo[panelHit]->low)));
|
||||
gainInfo[panelHit]->changed = true;
|
||||
gainInfo[panelHit]->valuePanel.setText(std::to_string(int(gainInfo[panelHit]->current)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user