From a346d52dfffc44999d3f10226642f7baa9c5463b Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Sun, 28 Nov 2004 21:20:43 +0000 Subject: unified "array" and "struct array" code. Vast changes to "g_array.c" and "g_template.c", and many smaller changes to various files. Not yet well tested. svn path=/trunk/; revision=2341 --- pd/src/g_graph.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pd/src/g_graph.c') diff --git a/pd/src/g_graph.c b/pd/src/g_graph.c index 8bb76ac0..1c9afc30 100644 --- a/pd/src/g_graph.c +++ b/pd/src/g_graph.c @@ -39,7 +39,8 @@ void glist_add(t_glist *x, t_gobj *y) if (glist_isvisible(x)) gobj_vis(y, x, 1); if (class_isdrawcommand(y->g_pd)) - canvas_redrawallfortemplate(glist_getcanvas(x)); + canvas_redrawallfortemplate(template_findbyname(canvas_makebindsym( + glist_getcanvas(x)->gl_name))); } /* this is to protect against a hairy problem in which deleting @@ -104,7 +105,9 @@ void glist_delete(t_glist *x, t_gobj *y) } pd_free(&y->g_pd); if (chkdsp) canvas_update_dsp(); - if (drawcommand) canvas_redrawallfortemplate(canvas); + if (drawcommand) + canvas_redrawallfortemplate(template_findbyname(canvas_makebindsym( + glist_getcanvas(x)->gl_name))); canvas_setdeleting(canvas, wasdeleting); x->gl_valid = ++glist_valid; } -- cgit v1.2.1