mirror of
https://git.vladimir.cc/vladimir/ewsdr.git
synced 2026-08-25 18:43:51 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user