aboutsummaryrefslogtreecommitdiff
path: root/src/tof.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tof.h')
-rw-r--r--src/tof.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tof.h b/src/tof.h
index 9681d7e..f6d2eba 100644
--- a/src/tof.h
+++ b/src/tof.h
@@ -47,7 +47,9 @@ static int tof_canvas_is_not_subpatch(t_canvas* canvas) {
static t_canvas* tof_get_canvas(void)
{
- return canvas_getcurrent();
+ t_glist *glist=(t_glist *)canvas_getcurrent();
+
+ return (t_canvas*)glist_getcanvas(glist);
//return glist_getcanvas((t_glist *)canvas_getcurrent());
}