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
Aayush
purr-data
Commits
62d59a28
Commit
62d59a28
authored
Mar 03, 2012
by
Ivica Ico Bukvic
Browse files
removed erroneous displacing of gatom in embedded patches
parent
f44b83e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/g_text.c
View file @
62d59a28
...
@@ -926,14 +926,18 @@ static void gatom_getwherelabel(t_gatom *x, t_glist *glist, int *xp, int *yp)
...
@@ -926,14 +926,18 @@ static void gatom_getwherelabel(t_gatom *x, t_glist *glist, int *xp, int *yp)
static
void
gatom_displace
(
t_gobj
*
z
,
t_glist
*
glist
,
static
void
gatom_displace
(
t_gobj
*
z
,
t_glist
*
glist
,
int
dx
,
int
dy
)
int
dx
,
int
dy
)
{
{
t_gatom
*
x
=
(
t_gatom
*
)
z
;
//fprintf(stderr,"gatom_displace\n");
text_displace
(
z
,
glist
,
dx
,
dy
);
t_gatom
*
x
=
(
t_gatom
*
)
z
;
sys_vgui
(
".x%lx.c move %lx.l %d %d
\n
"
,
glist_getcanvas
(
glist
),
text_displace
(
z
,
glist
,
dx
,
dy
);
x
,
dx
,
dy
);
if
(
glist_isvisible
(
glist
))
{
sys_vgui
(
".x%lx.c move %lx.l %d %d
\n
"
,
glist_getcanvas
(
glist
),
x
,
dx
,
dy
);
}
}
}
static
void
gatom_vis
(
t_gobj
*
z
,
t_glist
*
glist
,
int
vis
)
static
void
gatom_vis
(
t_gobj
*
z
,
t_glist
*
glist
,
int
vis
)
{
{
//fprintf(stderr,"gatom_vis\n");
t_gatom
*
x
=
(
t_gatom
*
)
z
;
t_gatom
*
x
=
(
t_gatom
*
)
z
;
text_vis
(
z
,
glist
,
vis
);
text_vis
(
z
,
glist
,
vis
);
if
(
*
x
->
a_label
->
s_name
)
if
(
*
x
->
a_label
->
s_name
)
...
@@ -958,7 +962,7 @@ static void gatom_vis(t_gobj *z, t_glist *glist, int vis)
...
@@ -958,7 +962,7 @@ static void gatom_vis(t_gobj *z, t_glist *glist, int vis)
void
canvas_atom
(
t_glist
*
gl
,
t_atomtype
type
,
void
canvas_atom
(
t_glist
*
gl
,
t_atomtype
type
,
t_symbol
*
s
,
int
argc
,
t_atom
*
argv
)
t_symbol
*
s
,
int
argc
,
t_atom
*
argv
)
{
{
//
fprintf(stderr,"canvas_atom\n");
fprintf
(
stderr
,
"canvas_atom
\n
"
);
t_gatom
*
x
=
(
t_gatom
*
)
pd_new
(
gatom_class
);
t_gatom
*
x
=
(
t_gatom
*
)
pd_new
(
gatom_class
);
t_atom
at
;
t_atom
at
;
x
->
a_text
.
te_width
=
0
;
/* don't know it yet. */
x
->
a_text
.
te_width
=
0
;
/* don't know it yet. */
...
...
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