diff options
author | Mike <mjc@avtechpulse.com> | 2000-01-01 01:01:55 +0900 |
---|---|---|
committer | Mike <mjc@avtechpulse.com> | 2000-01-01 01:01:55 +0900 |
commit | 00bb72001b04dbf9855401b60dd0c15f092ae312 (patch) | |
tree | 8a6f595fed16951b3201b1e8f79156772bfb457f | |
parent | 6d99931792013eeb64005621b273b17c17c2aca5 (diff) |
tidy amplitude menu code
-rw-r--r-- | menus.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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]) { |