From 044b25bb359c4b3254b947ca34a1491f5eb9f901 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 22 Apr 2016 22:06:42 +0200 Subject: Add SCBlock to image and callback paragraphs --- src/sc_interp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sc_interp.c') diff --git a/src/sc_interp.c b/src/sc_interp.c index 9899a95..cd1de86 100644 --- a/src/sc_interp.c +++ b/src/sc_interp.c @@ -216,7 +216,7 @@ static void do_callback(SCInterpreter *scin, SCBlock *bl, const char *name) if ( strcmp(cbl->names[i], name) != 0 ) continue; r = cbl->box_funcs[i](scin, bl, &w, &h, &bvp, cbl->vps[i]); if ( !r ) return; - add_callback_para(sc_interp_get_frame(scin), w, h, + add_callback_para(sc_interp_get_frame(scin), bl, w, h, cbl->draw_funcs[i], cbl->click_funcs[i], bvp, cbl->vps[i]); @@ -883,7 +883,7 @@ static int check_outputs(SCBlock *bl, SCInterpreter *scin) if ( parse_image_options(options, sc_interp_get_frame(scin), &w, &h, &filename) == 0 ) { - add_image_para(sc_interp_get_frame(scin), + add_image_para(sc_interp_get_frame(scin), bl, filename, w, h, 1); free(filename); } else { -- cgit v1.2.3