diff options
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/g_array.c')
-rw-r--r-- | apps/plugins/pdbox/PDa/src/g_array.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/apps/plugins/pdbox/PDa/src/g_array.c b/apps/plugins/pdbox/PDa/src/g_array.c index 484e6fa33d..529feef0e2 100644 --- a/apps/plugins/pdbox/PDa/src/g_array.c +++ b/apps/plugins/pdbox/PDa/src/g_array.c | |||
@@ -245,13 +245,13 @@ void glist_arraydialog(t_glist *parent, t_symbol *name, t_floatarg size, | |||
245 | t_floatarg saveit, t_floatarg otherflag) | 245 | t_floatarg saveit, t_floatarg otherflag) |
246 | { | 246 | { |
247 | t_glist *gl; | 247 | t_glist *gl; |
248 | t_garray *a; | 248 | /* t_garray *a; unused */ |
249 | if (size < 1) | 249 | if (size < 1) |
250 | size = 1; | 250 | size = 1; |
251 | if (otherflag == 0 || (!(gl = glist_findgraph(parent)))) | 251 | if (otherflag == 0 || (!(gl = glist_findgraph(parent)))) |
252 | gl = glist_addglist(parent, &s_, 0, 1, | 252 | gl = glist_addglist(parent, &s_, 0, 1, |
253 | (size > 1 ? size-1 : size), -1, 0, 0, 0, 0); | 253 | (size > 1 ? size-1 : size), -1, 0, 0, 0, 0); |
254 | a = graph_array(gl, sharptodollar(name), &s_float, size, saveit); | 254 | /* a = */ graph_array(gl, sharptodollar(name), &s_float, size, saveit); |
255 | } | 255 | } |
256 | 256 | ||
257 | /* this is called from the properties dialog window for an existing array */ | 257 | /* this is called from the properties dialog window for an existing array */ |
@@ -706,17 +706,22 @@ static void garray_vis(t_gobj *z, t_glist *glist, int vis) | |||
706 | else if (!template_find_field(template, gensym("x"), &xonset, &type, | 706 | else if (!template_find_field(template, gensym("x"), &xonset, &type, |
707 | &arraytype) || type != DT_FLOAT) | 707 | &arraytype) || type != DT_FLOAT) |
708 | { | 708 | { |
709 | float firsty, xcum = x->x_firstx; | 709 | float xcum = x->x_firstx; |
710 | int lastpixel = -1, ndrawn = 0; | 710 | int lastpixel = -1, ndrawn = 0; |
711 | float yval = 0, xpix; | 711 | float xpix; |
712 | #ifndef ROCKBOX | ||
713 | float firsty, yval = 0; | ||
714 | #endif | ||
712 | int ixpix = 0; | 715 | int ixpix = 0; |
713 | #ifndef ROCKBOX | 716 | #ifndef ROCKBOX |
714 | sys_vgui(".x%x.c create line \\\n", glist_getcanvas(glist)); | 717 | sys_vgui(".x%x.c create line \\\n", glist_getcanvas(glist)); |
715 | #endif | 718 | #endif |
716 | for (i = 0; i < x->x_n; i++) | 719 | for (i = 0; i < x->x_n; i++) |
717 | { | 720 | { |
721 | #ifndef ROCKBOX | ||
718 | yval = fixtof(*(t_sample *)(x->x_vec + | 722 | yval = fixtof(*(t_sample *)(x->x_vec + |
719 | template->t_n * i * sizeof (t_word) + yonset)); | 723 | template->t_n * i * sizeof (t_word) + yonset)); |
724 | #endif | ||
720 | xpix = glist_xtopixels(glist, xcum); | 725 | xpix = glist_xtopixels(glist, xcum); |
721 | ixpix = xpix + 0.5; | 726 | ixpix = xpix + 0.5; |
722 | if (ixpix != lastpixel) | 727 | if (ixpix != lastpixel) |
@@ -737,9 +742,7 @@ static void garray_vis(t_gobj *z, t_glist *glist, int vis) | |||
737 | else if (ndrawn == 1) sys_vgui("%d %f \\\n", ixpix, | 742 | else if (ndrawn == 1) sys_vgui("%d %f \\\n", ixpix, |
738 | glist_ytopixels(glist, yval)); | 743 | glist_ytopixels(glist, yval)); |
739 | sys_vgui("-tags .x%x.a%x\n", glist_getcanvas(glist), x); | 744 | sys_vgui("-tags .x%x.a%x\n", glist_getcanvas(glist), x); |
740 | #endif | ||
741 | firsty = fixtof(*(t_sample *)(x->x_vec + yonset)); | 745 | firsty = fixtof(*(t_sample *)(x->x_vec + yonset)); |
742 | #ifndef ROCKBOX | ||
743 | sys_vgui(".x%x.c create text %f %f -text {%s} -anchor e\ | 746 | sys_vgui(".x%x.c create text %f %f -text {%s} -anchor e\ |
744 | -font -*-courier-bold--normal--%d-* -tags .x%x.a%x\n", | 747 | -font -*-courier-bold--normal--%d-* -tags .x%x.a%x\n", |
745 | glist_getcanvas(glist), | 748 | glist_getcanvas(glist), |