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
Srashti Mittal
purr-data
Commits
17ae262b
Commit
17ae262b
authored
Apr 06, 2012
by
Ivica Bukvic
Browse files
changed drawing priority for nlets on gop objects to prevent their obstruction
parent
437edd04
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/g_graph.c
View file @
17ae262b
...
...
@@ -778,10 +778,6 @@ static void graph_vis(t_gobj *gr, t_glist *parent_glist, int vis)
sprintf
(
tag
,
"%s"
,
rtext_gettag
(
glist_findrtext
(
parent_glist
,
&
x
->
gl_obj
)));
//sprintf(tag, "graph%lx", (t_int)x);
//fprintf(stderr, "gettag=%s, tag=graph%lx\n", rtext_gettag(glist_findrtext(parent_glist, &x->gl_obj)),(t_int)x);
if
(
vis
)
glist_drawiofor
(
parent_glist
,
&
x
->
gl_obj
,
1
,
tag
,
x1
,
y1
,
x2
,
y2
);
else
glist_eraseiofor
(
parent_glist
,
&
x
->
gl_obj
,
tag
);
/* if we look like a graph but have been moved to a toplevel,
just show the bounding rectangle */
if
(
x
->
gl_havewindow
)
...
...
@@ -930,6 +926,8 @@ static void graph_vis(t_gobj *gr, t_glist *parent_glist, int vis)
/* reselect it upon redrawing if it was selected before */
if
(
glist_isselected
(
parent_glist
,
gr
))
gobj_select
(
gr
,
parent_glist
,
1
);
glist_drawiofor
(
parent_glist
,
&
x
->
gl_obj
,
1
,
tag
,
x1
,
y1
,
x2
,
y2
);
}
else
{
...
...
@@ -937,6 +935,7 @@ static void graph_vis(t_gobj *gr, t_glist *parent_glist, int vis)
glist_getcanvas
(
x
->
gl_owner
),
tag
);
sys_vgui
(
".x%lx.c delete %sR
\n
"
,
glist_getcanvas
(
x
->
gl_owner
),
tag
);
glist_eraseiofor
(
parent_glist
,
&
x
->
gl_obj
,
tag
);
for
(
g
=
x
->
gl_list
;
g
;
g
=
g
->
g_next
)
gobj_vis
(
g
,
x
,
0
);
}
...
...
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