Skip to content
Snippets Groups Projects
Commit 28b0256f authored by Mathieu L Bouchard's avatar Mathieu L Bouchard
Browse files

simplify the rtext tags

parent 3eba24f9
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ struct _rtext ...@@ -51,7 +51,7 @@ struct _rtext
int x_drawnheight; int x_drawnheight;
t_text *x_text; t_text *x_text;
t_glist *x_glist; t_glist *x_glist;
char x_tag[50]; char x_tag[20];
struct _rtext *x_next; struct _rtext *x_next;
}; };
...@@ -66,8 +66,7 @@ t_rtext *rtext_new(t_glist *glist, t_text *who) ...@@ -66,8 +66,7 @@ t_rtext *rtext_new(t_glist *glist, t_text *who)
x->x_drawnwidth = x->x_drawnheight = 0; x->x_drawnwidth = x->x_drawnheight = 0;
binbuf_gettext(who->te_binbuf, &x->x_buf, &x->x_bufsize); binbuf_gettext(who->te_binbuf, &x->x_buf, &x->x_bufsize);
glist->gl_editor->e_rtext = x; glist->gl_editor->e_rtext = x;
sprintf(x->x_tag, ".x%lx.t%lx", (t_int)glist_getcanvas(x->x_glist), sprintf(x->x_tag, "x%lx", (long)who);
(t_int)x);
return (x); return (x);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment