From 8c3faa20d73622d75573f1458218b36ee5613a7e Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Sat, 2 Jul 2005 05:03:06 +0000 Subject: new graph-on-parent behavior - no more of the stretching behavior. Existing patches should behave compatibly, but new ones will work differently (much much better.) svn path=/trunk/; revision=3283 --- pd/src/g_text.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pd/src/g_text.c') diff --git a/pd/src/g_text.c b/pd/src/g_text.c index 30735918..535d993b 100644 --- a/pd/src/g_text.c +++ b/pd/src/g_text.c @@ -950,13 +950,14 @@ static void text_delete(t_gobj *z, t_glist *glist) canvas_deletelinesfor(glist, x); } - /* return true if the text box should be drawn. - We don't show object boxes inside graphs. */ + /* return true if the text box should be drawn. We don't show text boxes + inside graphs---except comments, if we're doing the new (goprect) style. */ int text_shouldvis(t_text *x, t_glist *glist) { return (glist->gl_havewindow || (x->te_pd != canvas_class && x->te_pd->c_wb != &text_widgetbehavior) || - (x->te_pd == canvas_class && (((t_glist *)x)->gl_isgraph))); + (x->te_pd == canvas_class && (((t_glist *)x)->gl_isgraph)) || + (glist->gl_goprect && (x->te_type == T_TEXT))); } static void text_vis(t_gobj *z, t_glist *glist, int vis) -- cgit v1.2.1