Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aayush
purr-data
Commits
aab8fe1b
Commit
aab8fe1b
authored
Nov 01, 2012
by
Ivica Ico Bukvic
Browse files
fixed inlet highlighting color bug
parent
2977e6ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/g_editor.c
View file @
aab8fe1b
...
@@ -2603,7 +2603,7 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which,
...
@@ -2603,7 +2603,7 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which,
}
}
return;
return;
}
}
/* if
not a run
mode left click, fall here. */
/* if
in edit
mode left click, fall here. */
if (y = canvas_findhitbox(x, xpos, ypos, &x1, &y1, &x2, &y2))
if (y = canvas_findhitbox(x, xpos, ypos, &x1, &y1, &x2, &y2))
{
{
t_object *ob;
t_object *ob;
...
@@ -2613,6 +2613,7 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which,
...
@@ -2613,6 +2613,7 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which,
canvas_rightclick(x, xpos, ypos, y);
canvas_rightclick(x, xpos, ypos, y);
else if (shiftmod)
else if (shiftmod)
{
{
//selection
if (doit)
if (doit)
{
{
t_rtext *rt;
t_rtext *rt;
...
@@ -2640,7 +2641,7 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which,
...
@@ -2640,7 +2641,7 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which,
}
}
else
else
{
{
/* look for an outlet */
/* look for an outlet
we just clicked onto
*/
int noutlet;
int noutlet;
int ninlet;
int ninlet;
if (ob && (noutlet = obj_noutlets(ob)) && ypos >= y2-4)
if (ob && (noutlet = obj_noutlets(ob)) && ypos >= y2-4)
...
@@ -2928,7 +2929,7 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which,
...
@@ -2928,7 +2929,7 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which,
{
{
sys_vgui(".x%x.c itemconfigure %s -outline %s -fill %s -width 1\n",
sys_vgui(".x%x.c itemconfigure %s -outline %s -fill %s -width 1\n",
x, canvas_cnct_inlet_tag,
x, canvas_cnct_inlet_tag,
(last_inlet_filter ? "black" : (
out
let_issignal ? "$signal_cord" : "$msg_cord")),
(last_inlet_filter ? "black" : (
in
let_issignal ? "$signal_cord" : "$msg_cord")),
(inlet_issignal ? "$signal_nlet" : "$msg_nlet"));
(inlet_issignal ? "$signal_nlet" : "$msg_nlet"));
if (objtooltip) {
if (objtooltip) {
objtooltip = 0;
objtooltip = 0;
...
...
Write
Preview
Supports
Markdown
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