mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Remove extraneous parens
This commit is contained in:
parent
aaf9a1be49
commit
65bb8e4452
5 changed files with 6 additions and 6 deletions
|
@ -592,7 +592,7 @@ static void play_hop(int direction)
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if ((direction == -1 && elapsed < step))
|
else if (direction == -1 && elapsed < step)
|
||||||
{
|
{
|
||||||
elapsed = 0;
|
elapsed = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -459,7 +459,7 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
|
||||||
selected = get_menu_selection(gui_synclist_get_sel_pos(&lists),menu);
|
selected = get_menu_selection(gui_synclist_get_sel_pos(&lists),menu);
|
||||||
temp = menu->submenus[selected];
|
temp = menu->submenus[selected];
|
||||||
type = (temp->flags&MENU_TYPE_MASK);
|
type = (temp->flags&MENU_TYPE_MASK);
|
||||||
if ((type == MT_SETTING_W_TEXT || type == MT_SETTING))
|
if (type == MT_SETTING_W_TEXT || type == MT_SETTING)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_QUICKSCREEN
|
#ifdef HAVE_QUICKSCREEN
|
||||||
MENUITEM_STRINGLIST(quickscreen_able_option,
|
MENUITEM_STRINGLIST(quickscreen_able_option,
|
||||||
|
|
|
@ -333,7 +333,7 @@ static int info_action_callback(int action, struct gui_synclist *lists)
|
||||||
{
|
{
|
||||||
if (action == ACTION_STD_CANCEL)
|
if (action == ACTION_STD_CANCEL)
|
||||||
return action;
|
return action;
|
||||||
else if ((action == ACTION_STD_OK)
|
else if (action == ACTION_STD_OK
|
||||||
#ifdef HAVE_HOTSWAP
|
#ifdef HAVE_HOTSWAP
|
||||||
|| action == SYS_FS_CHANGED
|
|| action == SYS_FS_CHANGED
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1596,9 +1596,9 @@ static void randomize_dos_name(unsigned char *name)
|
||||||
while(i++ < 8)
|
while(i++ < 8)
|
||||||
{
|
{
|
||||||
/* hunt for ~ and where to put it */
|
/* hunt for ~ and where to put it */
|
||||||
if((!tilde) && (*nameptr == '~'))
|
if(!tilde && *nameptr == '~')
|
||||||
tilde = nameptr;
|
tilde = nameptr;
|
||||||
if((!lastpt) && ((*nameptr == ' ' || *nameptr == '~')))
|
if(!lastpt && (*nameptr == ' ' || *nameptr == '~'))
|
||||||
lastpt = nameptr;
|
lastpt = nameptr;
|
||||||
nameptr++;
|
nameptr++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,7 +82,7 @@ void button_int(void)
|
||||||
{
|
{
|
||||||
int_btn |= BUTTON_TAP;
|
int_btn |= BUTTON_TAP;
|
||||||
}
|
}
|
||||||
else if ((data[0] == MEP_ABSOLUTE_HEADER))
|
else if (data[0] == MEP_ABSOLUTE_HEADER)
|
||||||
{
|
{
|
||||||
if (data[1] & MEP_FINGER)
|
if (data[1] & MEP_FINGER)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue