Skip to content
Snippets Groups Projects
Commit cdbcc2ad authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix #152: canvas resizing not working

parent fcc3d035
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -768,12 +768,12 @@ t_scalehandle *scalehandle_new(t_object *x, t_glist *glist, int scale, t_clickha ...@@ -768,12 +768,12 @@ t_scalehandle *scalehandle_new(t_object *x, t_glist *glist, int scale, t_clickha
h->h_glist = glist; h->h_glist = glist;
if (!scale) /* Only bind for labels-- scaling uses pd_vmess in g_editor.c */ if (!scale) /* Only bind for labels-- scaling uses pd_vmess in g_editor.c */
{ {
sprintf(buf, "_l%lx", (int)x); sprintf(buf, "_l%lx", (long unsigned int)x);
pd_bind((t_pd *)h, h->h_bindsym = gensym(buf)); pd_bind((t_pd *)h, h->h_bindsym = gensym(buf));
} }
else if (scale && pd_class((t_pd *)x) == my_canvas_class) else if (scale && pd_class((t_pd *)x) == my_canvas_class)
{ {
sprintf(buf, "_s%lx", (int)x); sprintf(buf, "_s%lx", (long unsigned int)x);
pd_bind((t_pd *)h, h->h_bindsym = gensym(buf)); pd_bind((t_pd *)h, h->h_bindsym = gensym(buf));
} }
sprintf(h->h_outlinetag, "h%lx", (t_int)h); sprintf(h->h_outlinetag, "h%lx", (t_int)h);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment