summaryrefslogtreecommitdiffstats
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-05 02:44:01 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-05 02:44:01 +0000
commit29e18caacff0fe07736c6652ec75267fce6c9aff (patch)
tree5b081711866989d18f7d9774864a9b716e6b1180 /apps/gui/gwps-common.c
parent2aad3c05f3936c3ecad6b2f67da83a44fcc2a06a (diff)
downloadrockbox-29e18caacff0fe07736c6652ec75267fce6c9aff.tar.gz
rockbox-29e18caacff0fe07736c6652ec75267fce6c9aff.zip
Allow subline timeout values to be changed dynamically in the WPS (e.g. by using conditionals).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13026 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 7e38a08615..6307fed157 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -1396,6 +1396,10 @@ static bool get_line(struct gui_wps *gwps,
i = find_conditional_end(data, i);
break;
+ case WPS_TOKEN_SUBLINE_TIMEOUT:
+ data->time_mult[line][subline] = data->tokens[i].value.i;
+ break;
+
#ifdef HAVE_LCD_BITMAP
case WPS_TOKEN_IMAGE_PRELOAD_DISPLAY:
{
@@ -1759,9 +1763,14 @@ bool gui_wps_refresh(struct gui_wps *gwps,
/* reset to first subline if refresh all flag is set */
if (refresh_mode == WPS_REFRESH_ALL)
{
+ int j;
for (i = 0; i < data->num_lines; i++)
{
data->curr_subline[i] = SUBLINE_RESET;
+ for (j = 0; j < data->num_sublines[i]; j++)
+ {
+ data->time_mult[i][j] = DEFAULT_SUBLINE_TIME_MULTIPLIER;
+ }
}
}