Fix VfoOverlay FM mode: NFM/FM filters, deviation sync, button layout

- FM filter row now shows only NFM (11 kHz) and FM (16 kHz) matching MainForm
- OnModeFilterSelect updates FFMDeviation and FFilter index for FM mode
- Mode and filter button widths distributed evenly (proportional, not fixed BtnW)
- S-meter inset by extra 4 px on each side

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-22 12:32:33 +03:00
co-authored by Claude Sonnet 4.6
parent d99c19ec9a
commit 5a74017e8a
2 changed files with 37 additions and 21 deletions
+13
View File
@@ -5519,9 +5519,22 @@ begin
end;
procedure TMainForm.OnModeFilterSelect(Mode: Integer; FilterBW: Integer);
var
Idx: Integer;
begin
FMode := Mode;
FFilterBW := FilterBW;
if Mode = MODE_FM then
begin
FFilter := FILT_FM_DEF;
for Idx := 0 to FILT_FM_COUNT - 1 do
if FILT_FM_BW[Idx] = FilterBW then
begin
FFilter := Idx;
FFMDeviation := FILT_FM_DEV[Idx];
Break;
end;
end;
if FWDSPReady then
begin
FDSPEngine.SetMode(FMode);