aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/paramCustom.c6
-rw-r--r--src/tof.h12
2 files changed, 9 insertions, 9 deletions
diff --git a/src/paramCustom.c b/src/paramCustom.c
index c1cddda..4f6c9c2 100644
--- a/src/paramCustom.c
+++ b/src/paramCustom.c
@@ -139,10 +139,8 @@ static void* paramCustom_new(t_symbol *s, int ac, t_atom *av)
- x->param = param_register(x,root,path,\
- NULL,\
- (t_paramSaveMethod) paramCustom_save,\
- NULL);
+ x->param = param_register(x,root,path, NULL,\
+ (t_paramSaveMethod) paramCustom_save,NULL);
if (!x->param) return NULL;
diff --git a/src/tof.h b/src/tof.h
index 3c3b1f9..9681d7e 100644
--- a/src/tof.h
+++ b/src/tof.h
@@ -38,16 +38,17 @@ static t_symbol* tof_get_dollarzero(t_canvas* canvas) {
return canvas_realizedollar(canvas, gensym("$0"));
}
-
+//canvas_isabstraction(t_canvas *x)
static int tof_canvas_is_not_subpatch(t_canvas* canvas) {
- return canvas_isabstraction(canvas);
+ return (canvas->gl_env != 0);
}
static t_canvas* tof_get_canvas(void)
{
- return glist_getcanvas((t_glist *)canvas_getcurrent());
+ return canvas_getcurrent();
+ //return glist_getcanvas((t_glist *)canvas_getcurrent());
}
@@ -137,9 +138,10 @@ static t_canvas* tof_get_root_canvas(t_canvas* canvas)
}
static void tof_get_canvas_arguments(t_canvas *canvas, int *ac_p, t_atom **av_p) {
- canvas_setcurrent(canvas);
+ pd_pushsym(&canvas->gl_pd); //canvas_setcurrent(canvas);
canvas_getargs(ac_p , av_p);
- canvas_unsetcurrent(canvas);
+ pd_popsym(&canvas->gl_pd); //canvas_unsetcurrent(canvas);
+
}