summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-06 14:18:07 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-06 14:18:07 +0000
commit3954a51311f872abcce9b96ebe436b869939767a (patch)
tree40a829c808a4297d7b3d73cb8c9bca463407b143 /apps/gui/gwps-common.c
parent52112a05f11c2ab7e308e8bf2a64ae787e191369 (diff)
downloadrockbox-3954a51311f872abcce9b96ebe436b869939767a.tar.gz
rockbox-3954a51311f872abcce9b96ebe436b869939767a.zip
Better handling of subline timeout values : All values are set to the default before another value is found by the parser. No more
resetting to the default value at displaying time (this caused problems especially noticeable on the DancePuffDuo WPS). Changing the values with conditionals is still possible but only strictly positive tiemout values are accepted now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13045 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 4384284901..86003fa9ef 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -1763,14 +1763,9 @@ bool gui_wps_refresh(struct gui_wps *gwps,
1763 /* reset to first subline if refresh all flag is set */ 1763 /* reset to first subline if refresh all flag is set */
1764 if (refresh_mode == WPS_REFRESH_ALL) 1764 if (refresh_mode == WPS_REFRESH_ALL)
1765 { 1765 {
1766 int j;
1767 for (i = 0; i < data->num_lines; i++) 1766 for (i = 0; i < data->num_lines; i++)
1768 { 1767 {
1769 data->curr_subline[i] = SUBLINE_RESET; 1768 data->curr_subline[i] = SUBLINE_RESET;
1770 for (j = 0; j < data->num_sublines[i]; j++)
1771 {
1772 data->time_mult[i][j] = DEFAULT_SUBLINE_TIME_MULTIPLIER;
1773 }
1774 } 1769 }
1775 } 1770 }
1776 1771