summaryrefslogtreecommitdiff
path: root/menus.c
diff options
context:
space:
mode:
authorMike <mjc@avtechpulse.com>2000-01-01 01:01:55 +0900
committerMike <mjc@avtechpulse.com>2000-01-01 01:01:55 +0900
commit00bb72001b04dbf9855401b60dd0c15f092ae312 (patch)
tree8a6f595fed16951b3201b1e8f79156772bfb457f /menus.c
parent6d99931792013eeb64005621b273b17c17c2aca5 (diff)
tidy amplitude menu code
Diffstat (limited to 'menus.c')
-rw-r--r--menus.c13
1 files changed, 7 insertions, 6 deletions
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]) {