aboutsummaryrefslogtreecommitdiff
path: root/shared/unstable
diff options
context:
space:
mode:
authorN.N. <krzyszcz@users.sourceforge.net>2004-03-29 17:09:53 +0000
committerN.N. <krzyszcz@users.sourceforge.net>2004-03-29 17:09:53 +0000
commit14b05069b61d8d86d52415acb1adea7a61547ac6 (patch)
treec1a5e683b309349d4c261476154897fba6c0578b /shared/unstable
parent6f0f6fb5c0fe8ab2548c84a65fb6d1ee9363e317 (diff)
toxy alpha10
svn path=/trunk/externals/miXed/; revision=1502
Diffstat (limited to 'shared/unstable')
-rw-r--r--shared/unstable/fringe.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/shared/unstable/fringe.c b/shared/unstable/fringe.c
index cf29ec6..913d201 100644
--- a/shared/unstable/fringe.c
+++ b/shared/unstable/fringe.c
@@ -9,6 +9,8 @@
#include "unstable/forky.h"
#include "unstable/fringe.h"
+//#define FRINGE_DEBUG
+
static int gobj_getindex(t_glist *gl, t_gobj *ob)
{
t_gobj *ob1;
@@ -57,7 +59,7 @@ static void gobj_stowconnections(t_glist *gl, t_gobj *ob, t_binbuf *bb)
gobj_getindex(gl, (t_gobj *)lt.tr_ob), lt.tr_outno,
gobj_getindex(gl, (t_gobj *)lt.tr_ob2), lt.tr_inno);
}
-#if 0
+#ifdef FRINGE_DEBUG
post("packed connections:");
binbuf_print(bb);
#endif
@@ -65,9 +67,13 @@ static void gobj_stowconnections(t_glist *gl, t_gobj *ob, t_binbuf *bb)
static void gobj_restoreconnections(t_glist *gl, t_binbuf *bb)
{
- pd_bind((t_pd *)gl, gensym("#X"));
+#ifdef FRINGE_DEBUG
+ post("restoring connections:");
+ binbuf_print(bb);
+#endif
+ canvas_setcurrent(gl);
binbuf_eval(bb, 0, 0, 0);
- pd_unbind((t_pd *)gl, gensym("#X"));
+ canvas_unsetcurrent(gl);
}
void gobj_recreate(t_glist *gl, t_gobj *ob, t_binbuf *bb)