mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
settings: Fix up the remaining stragglers from 8cc3266b
Change-Id: I20e98d1e7cf13a59194f62935a8f46e96f83a1f9
This commit is contained in:
parent
8cc3266b2a
commit
74ded2bdd7
2 changed files with 7 additions and 7 deletions
|
@ -515,7 +515,7 @@ static bool history_interval(void)
|
||||||
|
|
||||||
return set_option(str(LANG_HISTOGRAM_INTERVAL),
|
return set_option(str(LANG_HISTOGRAM_INTERVAL),
|
||||||
&global_settings.histogram_interval,
|
&global_settings.histogram_interval,
|
||||||
INT, names, 4, NULL );
|
RB_INT, names, 4, NULL );
|
||||||
}
|
}
|
||||||
|
|
||||||
MENUITEM_FUNCTION(histogram, 0, ID2P(LANG_HISTOGRAM_INTERVAL),
|
MENUITEM_FUNCTION(histogram, 0, ID2P(LANG_HISTOGRAM_INTERVAL),
|
||||||
|
|
|
@ -329,11 +329,11 @@ static int agc_preset_func(void)
|
||||||
if (global_settings.rec_source)
|
if (global_settings.rec_source)
|
||||||
return set_option(str(LANG_RECORDING_AGC_PRESET),
|
return set_option(str(LANG_RECORDING_AGC_PRESET),
|
||||||
&global_settings.rec_agc_preset_line,
|
&global_settings.rec_agc_preset_line,
|
||||||
INT, names, 6, NULL );
|
RB_INT, names, 6, NULL );
|
||||||
else
|
else
|
||||||
return set_option(str(LANG_RECORDING_AGC_PRESET),
|
return set_option(str(LANG_RECORDING_AGC_PRESET),
|
||||||
&global_settings.rec_agc_preset_mic,
|
&global_settings.rec_agc_preset_mic,
|
||||||
INT, names, 6, NULL );
|
RB_INT, names, 6, NULL );
|
||||||
}
|
}
|
||||||
|
|
||||||
static int agc_cliptime_func(void)
|
static int agc_cliptime_func(void)
|
||||||
|
@ -347,7 +347,7 @@ static int agc_cliptime_func(void)
|
||||||
};
|
};
|
||||||
return set_option(str(LANG_RECORDING_AGC_CLIPTIME),
|
return set_option(str(LANG_RECORDING_AGC_CLIPTIME),
|
||||||
&global_settings.rec_agc_cliptime,
|
&global_settings.rec_agc_cliptime,
|
||||||
INT, names, 5, NULL );
|
RB_INT, names, 5, NULL );
|
||||||
}
|
}
|
||||||
MENUITEM_FUNCTION(agc_preset, 0, ID2P(LANG_RECORDING_AGC_PRESET),
|
MENUITEM_FUNCTION(agc_preset, 0, ID2P(LANG_RECORDING_AGC_PRESET),
|
||||||
agc_preset_func, NULL, Icon_Menu_setting);
|
agc_preset_func, NULL, Icon_Menu_setting);
|
||||||
|
@ -380,7 +380,7 @@ static enum themable_icons trigger_get_icon(int selected_item, void * data)
|
||||||
static const char * trigger_get_name(int selected_item, void * data,
|
static const char * trigger_get_name(int selected_item, void * data,
|
||||||
char * buffer, size_t buffer_len)
|
char * buffer, size_t buffer_len)
|
||||||
{
|
{
|
||||||
const struct settings_list **settings =
|
const struct settings_list **settings =
|
||||||
(const struct settings_list **)data;
|
(const struct settings_list **)data;
|
||||||
const struct settings_list *s = settings[selected_item / 2];
|
const struct settings_list *s = settings[selected_item / 2];
|
||||||
if ((selected_item % 2) == 0) /* header */
|
if ((selected_item % 2) == 0) /* header */
|
||||||
|
@ -493,7 +493,7 @@ int rectrigger(void)
|
||||||
/* restart trigger with new values */
|
/* restart trigger with new values */
|
||||||
settings_apply_trigger();
|
settings_apply_trigger();
|
||||||
peak_meter_trigger (global_settings.rec_trigger_mode != TRIG_MODE_OFF);
|
peak_meter_trigger (global_settings.rec_trigger_mode != TRIG_MODE_OFF);
|
||||||
|
|
||||||
trigger_speak_item(settings, 0, true);
|
trigger_speak_item(settings, 0, true);
|
||||||
|
|
||||||
while (!done)
|
while (!done)
|
||||||
|
@ -505,7 +505,7 @@ int rectrigger(void)
|
||||||
settings_apply_trigger();
|
settings_apply_trigger();
|
||||||
changed = false;
|
changed = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
FOR_NB_SCREENS(i)
|
FOR_NB_SCREENS(i)
|
||||||
screens[i].set_viewport(&triggervp[i]);
|
screens[i].set_viewport(&triggervp[i]);
|
||||||
peak_meter_draw_trig(trig_xpos, trig_ypos, trig_width, NB_SCREENS);
|
peak_meter_draw_trig(trig_xpos, trig_ypos, trig_width, NB_SCREENS);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue