From 00bb72001b04dbf9855401b60dd0c15f092ae312 Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 1 Jan 2000 01:01:55 +0900 Subject: tidy amplitude menu code --- menus.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'menus.c') diff --git a/menus.c b/menus.c index cc91bc7..91f97ee 100644 --- a/menus.c +++ b/menus.c @@ -1351,6 +1351,9 @@ static void Submenu_Display(int change_selection) case Submenu1_amp: title = title_with_channel("Amplitude",globals.Flash.ChanKey_amplitude,channel); + Submenu_max_entry=0; + Submenu_Structure[0]=mode_amp_normal; + if (number_of_fixed_ampl_points(channel)>0) { int fixed_count; Submenu_max_entry = number_of_fixed_ampl_points(channel) - 1; @@ -1362,14 +1365,12 @@ static void Submenu_Display(int change_selection) } if (globals.Flash.ea_enabled[channel]) { - Submenu_max_entry=1; - Submenu_Structure[0]=mode_amp_normal; - Submenu_Structure[1]=mode_amp_ea; + ++Submenu_max_entry; + Submenu_Structure[Submenu_max_entry]=mode_amp_ea; } if (globals.Flash.ext_amplify_enabled[channel]) { - Submenu_max_entry=1; - Submenu_Structure[0]=mode_amp_normal; - Submenu_Structure[1]=mode_amp_amplify; + ++Submenu_max_entry; + Submenu_Structure[Submenu_max_entry]=mode_amp_amplify; } if (globals.Flash.ignore_ampl_polarity[channel]) { -- cgit