Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
28b0256f
Commit
28b0256f
authored
Aug 13, 2014
by
Mathieu L Bouchard
Browse files
simplify the rtext tags
parent
3eba24f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/g_rtext.c
View file @
28b0256f
...
...
@@ -51,7 +51,7 @@ struct _rtext
int
x_drawnheight
;
t_text
*
x_text
;
t_glist
*
x_glist
;
char
x_tag
[
5
0
];
char
x_tag
[
2
0
];
struct
_rtext
*
x_next
;
};
...
...
@@ -66,8 +66,7 @@ t_rtext *rtext_new(t_glist *glist, t_text *who)
x
->
x_drawnwidth
=
x
->
x_drawnheight
=
0
;
binbuf_gettext
(
who
->
te_binbuf
,
&
x
->
x_buf
,
&
x
->
x_bufsize
);
glist
->
gl_editor
->
e_rtext
=
x
;
sprintf
(
x
->
x_tag
,
".x%lx.t%lx"
,
(
t_int
)
glist_getcanvas
(
x
->
x_glist
),
(
t_int
)
x
);
sprintf
(
x
->
x_tag
,
"x%lx"
,
(
long
)
who
);
return
(
x
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment