Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23615
Modified Files: Tag: devel_0_39 desire.c Log Message: modified canvas_objtext a little to support the the render fix
Index: desire.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v retrieving revision 1.1.2.22 retrieving revision 1.1.2.23 diff -C2 -d -r1.1.2.22 -r1.1.2.23 *** desire.c 20 Sep 2005 09:34:59 -0000 1.1.2.22 --- desire.c 20 Sep 2005 23:17:51 -0000 1.1.2.23 *************** *** 11748,11754 **** static void canvas_objtext(t_glist *gl, int xpix, int ypix, int selected, t_binbuf *b) { t_text *x=0; ! int argc; t_atom *argv; newest = 0; canvas_setcurrent((t_canvas *)gl); canvas_getargs(&argc, &argv); --- 11748,11756 ---- static void canvas_objtext(t_glist *gl, int xpix, int ypix, int selected, t_binbuf *b) { t_text *x=0; ! int argc, n; t_atom *argv; + char *s; newest = 0; + binbuf_gettext(b,&s,&n); canvas_setcurrent((t_canvas *)gl); canvas_getargs(&argc, &argv); *************** *** 11764,11768 **** } if (!x) x = (t_text *)pd_new(text_class); ! sys_vgui("global _; set _(%x:canvas) %lx\n",(long)x,(long)gl); x->te_binbuf = b; x->te_xpix = xpix; --- 11766,11771 ---- } if (!x) x = (t_text *)pd_new(text_class); ! sys_vgui("global _ focus; set _(%x:canvas) %lx; set focus(objname) {%.*s}\n",(long)x,(long)gl,s); ! //sys_vgui("global _; set _(%x:canvas) %lx\n",(long)x,(long)gl); x->te_binbuf = b; x->te_xpix = xpix;