aboutsummaryrefslogtreecommitdiff
path: root/pd/src/g_text.c
diff options
context:
space:
mode:
authorMiller Puckette <millerpuckette@users.sourceforge.net>2004-11-06 16:07:34 +0000
committerMiller Puckette <millerpuckette@users.sourceforge.net>2004-11-06 16:07:34 +0000
commit981f641ef44fe4d72dcb0e1248a2f96ba53cee69 (patch)
treed5871a901628db17e12e6204d13b4bdb4b8a07d9 /pd/src/g_text.c
parent5b0640e17d6db9e119d657fcadcf52ff317e704d (diff)
0.38 test 9 (mostly bug fixes)
svn path=/trunk/; revision=2226
Diffstat (limited to 'pd/src/g_text.c')
-rw-r--r--pd/src/g_text.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/pd/src/g_text.c b/pd/src/g_text.c
index 86bd66a1..cabe22d7 100644
--- a/pd/src/g_text.c
+++ b/pd/src/g_text.c
@@ -109,7 +109,6 @@ static void canvas_objtext(t_glist *gl, int xpix, int ypix, int selected,
else x = 0;
if (!x)
{
-
/* LATER make the color reflect this */
x = (t_text *)pd_new(text_class);
}
@@ -1159,21 +1158,21 @@ void text_drawborder(t_text *x, t_glist *glist,
height = y2 - y1;
if (x->te_type == T_OBJECT)
{
- char *pattern = ((pd_class(&x->te_pd) == text_class) ? "-" : "\"\"");
+ char *pattern = ((pd_class(&x->te_pd) == text_class) ? "-" : "\"\"");
if (firsttime)
sys_vgui(".x%lx.c create line\
%d %d %d %d %d %d %d %d %d %d -dash %s -tags %sR\n",
glist_getcanvas(glist),
x1, y1, x2, y1, x2, y2, x1, y2, x1, y1, pattern, tag);
else
- {
+ {
sys_vgui(".x%lx.c coords %sR\
%d %d %d %d %d %d %d %d %d %d\n",
glist_getcanvas(glist), tag,
x1, y1, x2, y1, x2, y2, x1, y2, x1, y1);
- sys_vgui(".x%lx.c itemconfigure -dash %s\n",
- glist_getcanvas(glist), pattern);
- }
+ sys_vgui(".x%lx.c itemconfigure %sR -dash %s\n",
+ glist_getcanvas(glist), tag, pattern);
+ }
}
else if (x->te_type == T_MESSAGE)
{