diff options
author | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-07-02 05:03:06 +0000 |
---|---|---|
committer | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-07-02 05:03:06 +0000 |
commit | 8c3faa20d73622d75573f1458218b36ee5613a7e (patch) | |
tree | 76987130124f0b57b25e2a0777dbd2e4d4fe00f8 /pd/src/g_text.c | |
parent | c59464f01c8151baaa42dcb8641d73c58dc79fda (diff) |
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
Diffstat (limited to 'pd/src/g_text.c')
-rw-r--r-- | pd/src/g_text.c | 7 |
1 files changed, 4 insertions, 3 deletions
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) |