summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pdbox
diff options
context:
space:
mode:
authorWincent Balin <wincent@rockbox.org>2010-06-04 18:05:59 +0000
committerWincent Balin <wincent@rockbox.org>2010-06-04 18:05:59 +0000
commit97fef6b0c5db7e2bb5f4cabe98a3d2b885c54945 (patch)
tree54de88b0bd6e70233a159d787e23533c73d0953d /apps/plugins/pdbox
parent86b1ecca09ed6196fba91eabc164c2a470152ee1 (diff)
downloadrockbox-97fef6b0c5db7e2bb5f4cabe98a3d2b885c54945.tar.gz
rockbox-97fef6b0c5db7e2bb5f4cabe98a3d2b885c54945.tar.bz2
rockbox-97fef6b0c5db7e2bb5f4cabe98a3d2b885c54945.zip
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
Diffstat (limited to 'apps/plugins/pdbox')
-rw-r--r--apps/plugins/pdbox/pdbox-gui.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/pdbox-gui.c b/apps/plugins/pdbox/pdbox-gui.c
index 33d15ab661..f22999ff7c 100644
--- a/apps/plugins/pdbox/pdbox-gui.c
+++ b/apps/plugins/pdbox/pdbox-gui.c
@@ -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;