mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 05:35:20 -05:00
Fix a small delay in updating the recording screen. This caused the screen not to update when changing settings fast (key repeat)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18273 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ba284447d5
commit
2966c7cc5a
1 changed files with 10 additions and 10 deletions
|
|
@ -942,7 +942,7 @@ bool recording_screen(bool no_source)
|
||||||
char buf[32]; /* for preparing strings */
|
char buf[32]; /* for preparing strings */
|
||||||
char buf2[32]; /* for preparing strings */
|
char buf2[32]; /* for preparing strings */
|
||||||
int w, h; /* character width/height */
|
int w, h; /* character width/height */
|
||||||
int update_countdown = 1; /* refresh counter */
|
int update_countdown = 0; /* refresh counter */
|
||||||
unsigned int seconds;
|
unsigned int seconds;
|
||||||
int hours, minutes;
|
int hours, minutes;
|
||||||
int audio_stat = 0; /* status of the audio system */
|
int audio_stat = 0; /* status of the audio system */
|
||||||
|
|
@ -1155,7 +1155,7 @@ bool recording_screen(bool no_source)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
set_gain();
|
set_gain();
|
||||||
update_countdown = 1; /* Update immediately */
|
update_countdown = 0; /* Update immediately */
|
||||||
|
|
||||||
/* populate translation table for list id -> enum */
|
/* populate translation table for list id -> enum */
|
||||||
if(global_settings.rec_source == AUDIO_SRC_MIC)
|
if(global_settings.rec_source == AUDIO_SRC_MIC)
|
||||||
|
|
@ -1340,7 +1340,7 @@ bool recording_screen(bool no_source)
|
||||||
#endif /* HAVE_AGC */
|
#endif /* HAVE_AGC */
|
||||||
}
|
}
|
||||||
set_gain();
|
set_gain();
|
||||||
update_countdown = 1; /* Update immediately */
|
update_countdown = 0; /* Update immediately */
|
||||||
break;
|
break;
|
||||||
case ACTION_SETTINGS_DEC:
|
case ACTION_SETTINGS_DEC:
|
||||||
case ACTION_SETTINGS_DECREPEAT:
|
case ACTION_SETTINGS_DECREPEAT:
|
||||||
|
|
@ -1406,7 +1406,7 @@ bool recording_screen(bool no_source)
|
||||||
#endif /* HAVE_AGC */
|
#endif /* HAVE_AGC */
|
||||||
}
|
}
|
||||||
set_gain();
|
set_gain();
|
||||||
update_countdown = 1; /* Update immediately */
|
update_countdown = 0; /* Update immediately */
|
||||||
break;
|
break;
|
||||||
case ACTION_STD_CANCEL:
|
case ACTION_STD_CANCEL:
|
||||||
/* turn off the trigger */
|
/* turn off the trigger */
|
||||||
|
|
@ -1425,7 +1425,7 @@ bool recording_screen(bool no_source)
|
||||||
#endif
|
#endif
|
||||||
done = 1;
|
done = 1;
|
||||||
}
|
}
|
||||||
update_countdown = 1; /* Update immediately */
|
update_countdown = 0; /* Update immediately */
|
||||||
break;
|
break;
|
||||||
#ifdef HAVE_REMOTE_LCD
|
#ifdef HAVE_REMOTE_LCD
|
||||||
case ACTION_REC_LCD:
|
case ACTION_REC_LCD:
|
||||||
|
|
@ -1451,7 +1451,7 @@ bool recording_screen(bool no_source)
|
||||||
screen_update = NB_SCREENS;
|
screen_update = NB_SCREENS;
|
||||||
}
|
}
|
||||||
remote_display_on = !remote_display_on; /* toggle */
|
remote_display_on = !remote_display_on; /* toggle */
|
||||||
update_countdown = 1; /* Update immediately */
|
update_countdown = 0; /* Update immediately */
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case ACTION_REC_PAUSE:
|
case ACTION_REC_PAUSE:
|
||||||
|
|
@ -1509,7 +1509,7 @@ bool recording_screen(bool no_source)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
update_countdown = 1; /* Update immediately */
|
update_countdown = 0; /* Update immediately */
|
||||||
break;
|
break;
|
||||||
case ACTION_STD_MENU:
|
case ACTION_STD_MENU:
|
||||||
#if CONFIG_CODEC == SWCODEC
|
#if CONFIG_CODEC == SWCODEC
|
||||||
|
|
@ -1552,7 +1552,7 @@ bool recording_screen(bool no_source)
|
||||||
done = true;
|
done = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
update_countdown = 1; /* Update immediately */
|
update_countdown = 0; /* Update immediately */
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -1574,7 +1574,7 @@ bool recording_screen(bool no_source)
|
||||||
done = true;
|
done = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
update_countdown = 1; /* Update immediately */
|
update_countdown = 0; /* Update immediately */
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif /* CONFIG_KEYPAD == RECORDER_PAD */
|
#endif /* CONFIG_KEYPAD == RECORDER_PAD */
|
||||||
|
|
@ -1717,7 +1717,7 @@ bool recording_screen(bool no_source)
|
||||||
else
|
else
|
||||||
rec_command(RECORDING_CMD_STOP_SHUTDOWN);
|
rec_command(RECORDING_CMD_STOP_SHUTDOWN);
|
||||||
}
|
}
|
||||||
update_countdown = 1;
|
update_countdown = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* draw the clipcounter just in front of the peakmeter */
|
/* draw the clipcounter just in front of the peakmeter */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue