From 982d9823a3f4978b211841adff80c9bc6166c4e9 Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Sun, 22 Oct 2006 21:46:11 +0000 Subject: test release for 0.41 (bug fixes for IA64). svn path=/trunk/; revision=6154 --- pd/src/g_graph.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pd/src/g_graph.c') diff --git a/pd/src/g_graph.c b/pd/src/g_graph.c index 97fe71e7..1f449a63 100644 --- a/pd/src/g_graph.c +++ b/pd/src/g_graph.c @@ -999,7 +999,7 @@ static void graph_motion(void *z, t_floatarg dx, t_floatarg dy) t_garray *a = (t_garray *)(x->gl_list); int oldx = 0.5 + glist_pixelstox(x, graph_lastxpix); int newx = 0.5 + glist_pixelstox(x, newxpix); - t_float *vec; + t_word *vec; int nelem, i; float oldy = glist_pixelstoy(x, graph_lastypix); float newy = glist_pixelstoy(x, newypix); @@ -1008,7 +1008,7 @@ static void graph_motion(void *z, t_floatarg dx, t_floatarg dy) /* verify that the array is OK */ if (!a || pd_class((t_pd *)a) != garray_class) return; - if (!garray_getfloatarray(a, &nelem, &vec)) + if (!garray_getfloatwords(a, &nelem, &vec)) return; if (oldx < 0) oldx = 0; if (oldx >= nelem) @@ -1019,16 +1019,16 @@ static void graph_motion(void *z, t_floatarg dx, t_floatarg dy) if (oldx < newx - 1) { for (i = oldx + 1; i <= newx; i++) - vec[i] = newy + (oldy - newy) * + vec[i].w_float = newy + (oldy - newy) * ((float)(newx - i))/(float)(newx - oldx); } else if (oldx > newx + 1) { for (i = oldx - 1; i >= newx; i--) - vec[i] = newy + (oldy - newy) * + vec[i].w_float = newy + (oldy - newy) * ((float)(newx - i))/(float)(newx - oldx); } - else vec[newx] = newy; + else vec[newx].w_float = newy; garray_redraw(a); } -- cgit v1.2.1