Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6123
Modified Files: Tag: desiredata desire.c desire.h Log Message: canvas: removed "willvis" field
Index: desire.h =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/desire.h,v retrieving revision 1.1.2.49.2.46 retrieving revision 1.1.2.49.2.47 diff -C2 -d -r1.1.2.49.2.46 -r1.1.2.49.2.47 *** desire.h 17 Aug 2007 16:19:27 -0000 1.1.2.49.2.46 --- desire.h 17 Aug 2007 18:35:10 -0000 1.1.2.49.2.47 *************** *** 167,171 **** t_canvasenvironment *env; /* one of these per $0; env=0 for subpatches */ unsigned int havewindow:1; /* this indicates whether we publish to the manager */ - unsigned int willvis:1; /* make me visible after loading (should deprecate this: use PUSH) */ unsigned int gop:1; unsigned int goprect:1; /* gop version >= 0.39 */ --- 167,170 ----
Index: desire.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v retrieving revision 1.1.2.217.2.217 retrieving revision 1.1.2.217.2.218 diff -C2 -d -r1.1.2.217.2.217 -r1.1.2.217.2.218 *** desire.c 17 Aug 2007 16:19:24 -0000 1.1.2.217.2.217 --- desire.c 17 Aug 2007 18:35:07 -0000 1.1.2.217.2.218 *************** *** 372,379 **** x->gl_next = canvas_list; canvas_list = x; ! if (x->havewindow || x->willvis) { ! gobj_subscribe(x,manager); ! //canvas_each(y,x) gobj_ ! } }
--- 372,376 ---- x->gl_next = canvas_list; canvas_list = x; ! if (x->havewindow) gobj_subscribe(x,manager); }
*************** *** 509,512 **** --- 506,511 ---- }
+ static void canvas_vis(t_canvas *x, t_floatarg f); + /* make a new canvas. It will either be a "root" canvas or else it appears as a "text" object in another window (canvas_getcurrent() tells us which.) */ *************** *** 553,557 **** if (z && canvas_isabstraction(z) && z->owner) vis = 0; } ! x->willvis = vis; x->font = 10 /*sys_nearestfontsize(font)*/; pd_pushsym(x); --- 552,556 ---- if (z && canvas_isabstraction(z) && z->owner) vis = 0; } ! if (vis) canvas_vis(x,vis); x->font = 10 /*sys_nearestfontsize(font)*/; pd_pushsym(x); *************** *** 727,731 **** } } ! canvas_pop(x, x->willvis); t_pd *z = gensym("#X")->thing; if (!z) {error("out of context"); return;} --- 726,730 ---- } } ! canvas_pop(x,0); /* 0 means "don't touch" here. */ t_pd *z = gensym("#X")->thing; if (!z) {error("out of context"); return;}