| 532 | } |
| 533 | |
| 534 | void EqualizationUI::UpdateRuler() |
| 535 | { |
| 536 | const auto ¶meters = mCurvesList.mParameters; |
| 537 | const auto &dBMin = parameters.mdBMin; |
| 538 | const auto &dBMax = parameters.mdBMax; |
| 539 | |
| 540 | // Refresh ruler when values have changed |
| 541 | int w1, w2, h; |
| 542 | mdBRuler->ruler.GetMaxSize(&w1, &h); |
| 543 | mdBRuler->ruler.SetRange(dBMax, dBMin); |
| 544 | mdBRuler->ruler.GetMaxSize(&w2, &h); |
| 545 | if( w1 != w2 ) // Reduces flicker |
| 546 | { |
| 547 | mdBRuler->SetSize(wxSize(w2,h)); |
| 548 | mFreqRuler->Refresh(false); |
| 549 | } |
| 550 | mdBRuler->Refresh(false); |
| 551 | |
| 552 | mPanel->Refresh(false); |
| 553 | } |
| 554 | |
| 555 | /////////////////////////////////////////////////////////////////////////////// |
| 556 | // |
no test coverage detected