From aab8fe1b070d477600081570874bbe29fb86c9cc Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@monsoon.(none)> Date: Thu, 1 Nov 2012 14:30:30 -0400 Subject: [PATCH] fixed inlet highlighting color bug --- src/g_editor.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/g_editor.c b/src/g_editor.c index 55f702476..a6c914a5c 100644 --- a/src/g_editor.c +++ b/src/g_editor.c @@ -2603,7 +2603,7 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which, } return; } - /* if not a runmode left click, fall here. */ + /* if in editmode left click, fall here. */ if (y = canvas_findhitbox(x, xpos, ypos, &x1, &y1, &x2, &y2)) { t_object *ob; @@ -2613,6 +2613,7 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which, canvas_rightclick(x, xpos, ypos, y); else if (shiftmod) { + //selection if (doit) { t_rtext *rt; @@ -2640,7 +2641,7 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which, } else { - /* look for an outlet */ + /* look for an outlet we just clicked onto */ int noutlet; int ninlet; 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, { sys_vgui(".x%x.c itemconfigure %s -outline %s -fill %s -width 1\n", x, canvas_cnct_inlet_tag, - (last_inlet_filter ? "black" : (outlet_issignal ? "$signal_cord" : "$msg_cord")), + (last_inlet_filter ? "black" : (inlet_issignal ? "$signal_cord" : "$msg_cord")), (inlet_issignal ? "$signal_nlet" : "$msg_nlet")); if (objtooltip) { objtooltip = 0; -- GitLab