Commit 62d59a28 authored by Ivica Ico Bukvic's avatar Ivica Ico Bukvic
Browse files

removed erroneous displacing of gatom in embedded patches

parent f44b83e3
...@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment