Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14766
Modified Files: Tag: devel_0_39 desire.c Log Message: hacking a pd_upload so that objectboxes may show up
Index: desire.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v retrieving revision 1.1.2.16 retrieving revision 1.1.2.17 diff -C2 -d -r1.1.2.16 -r1.1.2.17 *** desire.c 16 Sep 2005 19:20:04 -0000 1.1.2.16 --- desire.c 16 Sep 2005 20:53:50 -0000 1.1.2.17 *************** *** 23,26 **** --- 23,35 ---- #include <string.h>
+ /* + #define L fprintf(stdout,"%s:%d in %s",__FILE__,__LINE__,__PRETTY_FUNCTION__); + #define sys_vgui(args...) do { \ + fprintf(stderr,"\e[0;1;31m"); \ + L fprintf(stderr,args); \ + fprintf(stderr,"\e[0m"); \ + sys_vgui(args); } while(0) + */ + //-------------------------------------------------------------------------- // from g_canvas.c *************** *** 5672,5675 **** --- 5681,5686 ---- t_object *ob; y->g_next = 0; + pd_upload(y); + sys_mgui(y,"draw",""); if (!x->gl_list) x->gl_list = y; else *************** *** 5687,5692 **** canvas_drawredrect(x, 1); } ! if (glist_isvisible(x)) ! gobj_vis(y, x, 1); if (class_isdrawcommand(y->g_pd)) canvas_redrawallfortemplate(template_findbyname(canvas_makebindsym( --- 5698,5702 ---- canvas_drawredrect(x, 1); } ! if (glist_isvisible(x)) gobj_vis(y,x,1); if (class_isdrawcommand(y->g_pd)) canvas_redrawallfortemplate(template_findbyname(canvas_makebindsym( *************** *** 12698,12703 **** static void text_vis(t_gobj *z, t_glist *glist, int vis) { t_text *x = (t_text *)z; if (vis) { ! if (text_shouldvis(x, glist)) pd_changed(x); } else { sys_mgui(z,"erase",""); --- 12708,12720 ---- static void text_vis(t_gobj *z, t_glist *glist, int vis) { t_text *x = (t_text *)z; + pd_changed(x); + sys_mgui(z,"draw",""); if (vis) { ! if (text_shouldvis(x, glist)) { ! // pd_changed(x); ! // sys_mgui(x,"draw",""); ! } { ! post("#$^#!^#^#^ canvas not visible?"); ! } } else { sys_mgui(z,"erase","");