pdbox: The values on of widgets are reset on start now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26548 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
86b1ecca09
commit
97fef6b0c5
1 changed files with 21 additions and 0 deletions
|
@ -224,6 +224,9 @@ unsigned int pd_gui_load_patch(struct pd_widget* wg, unsigned int max_widgets)
|
|||
strtok_r(NULL, " ", &saveptr);
|
||||
strncpy(wg->name, strtok_r(NULL, " ", &saveptr), sizeof(wg->name));
|
||||
|
||||
/* Reset value. */
|
||||
wg->value = 0;
|
||||
|
||||
/* We got one more widget. */
|
||||
wg++;
|
||||
widgets++;
|
||||
|
@ -246,6 +249,9 @@ unsigned int pd_gui_load_patch(struct pd_widget* wg, unsigned int max_widgets)
|
|||
strtok_r(NULL, " ", &saveptr);
|
||||
strncpy(wg->name, strtok_r(NULL, " ", &saveptr), sizeof(wg->name));
|
||||
|
||||
/* Reset value. */
|
||||
wg->value = 0;
|
||||
|
||||
/* We got one more widget. */
|
||||
wg++;
|
||||
widgets++;
|
||||
|
@ -269,6 +275,9 @@ unsigned int pd_gui_load_patch(struct pd_widget* wg, unsigned int max_widgets)
|
|||
strtok_r(NULL, " ", &saveptr);
|
||||
strncpy(wg->name, strtok_r(NULL, " ", &saveptr), sizeof(wg->name));
|
||||
|
||||
/* Reset value. */
|
||||
wg->value = 0;
|
||||
|
||||
/* We got one more widget. */
|
||||
wg++;
|
||||
widgets++;
|
||||
|
@ -292,6 +301,9 @@ unsigned int pd_gui_load_patch(struct pd_widget* wg, unsigned int max_widgets)
|
|||
strtok_r(NULL, " ", &saveptr);
|
||||
strncpy(wg->name, strtok_r(NULL, " ", &saveptr), sizeof(wg->name));
|
||||
|
||||
/* Reset value. */
|
||||
wg->value = 0;
|
||||
|
||||
/* We got one more widget. */
|
||||
wg++;
|
||||
widgets++;
|
||||
|
@ -316,6 +328,9 @@ unsigned int pd_gui_load_patch(struct pd_widget* wg, unsigned int max_widgets)
|
|||
strncpy(wg->name, strtok_r(NULL, " ", &saveptr), sizeof(wg->name));
|
||||
wg->max--;
|
||||
|
||||
/* Reset value. */
|
||||
wg->value = 0;
|
||||
|
||||
/* We got one more widget. */
|
||||
wg++;
|
||||
widgets++;
|
||||
|
@ -340,6 +355,9 @@ unsigned int pd_gui_load_patch(struct pd_widget* wg, unsigned int max_widgets)
|
|||
strncpy(wg->name, strtok_r(NULL, " ", &saveptr), sizeof(wg->name));
|
||||
wg->max--;
|
||||
|
||||
/* Reset value. */
|
||||
wg->value = 0;
|
||||
|
||||
/* We got one more widget. */
|
||||
wg++;
|
||||
widgets++;
|
||||
|
@ -364,6 +382,9 @@ unsigned int pd_gui_load_patch(struct pd_widget* wg, unsigned int max_widgets)
|
|||
wg->min = 0;
|
||||
wg->max = 1;
|
||||
|
||||
/* Reset value. */
|
||||
wg->value = 0;
|
||||
|
||||
/* Clear timeout flag. */
|
||||
wg->timeout = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue