Commit 8830e84e authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*added sanity check for mknob (a subset of iemgui) to see if selected status...

*added sanity check for mknob (a subset of iemgui) to see if selected status would require object to be highlighted (if inside graph-on-parent, it should be silently selected but not visibly selected)
*fixed regression where selected variable in the old_g_all_guis.inc did not allow for a value larger than 1-bit, resulting in selected=2 being selected=0
parent 3eff477c
......@@ -265,12 +265,16 @@ static void mknob_draw_io(t_mknob *x,t_glist *glist, int old_snd_rcv_flags)
static void mknob_draw_select(t_mknob *x,t_glist *glist)
{
t_canvas *canvas=glist_getcanvas(glist);
//fprintf(stderr,"mknob_draw_select %lx %lx\n", x->x_gui.x_fsf.x_selected, glist);
if(x->x_gui.x_fsf.x_selected)
{
//pd_bind(&x->x_gui.x_obj.ob_pd, iemgui_key_sym);
sys_vgui(".x%lx.c itemconfigure %xBASE -stroke #%6.6x\n", canvas, x, IEM_GUI_COLOR_SELECTED);
sys_vgui(".x%lx.c itemconfigure %xLABEL -fill #%6.6x\n", canvas, x, IEM_GUI_COLOR_SELECTED);
if (x->x_gui.x_glist == glist_getcanvas(glist))
{
sys_vgui(".x%lx.c itemconfigure %xBASE -stroke $pd_colors(selection)\n", canvas, x);
sys_vgui(".x%lx.c itemconfigure %xLABEL -fill $pd_colors(selection)\n", canvas, x);
}
sys_vgui(".x%lx.c addtag selected withtag %lxMKNOB\n", canvas, x);
}
else
......
......@@ -114,7 +114,7 @@ typedef struct _iem_fstyle_flags
unsigned int x_lab_arg_tail_len:6;
unsigned int x_lab_is_arg_num:6;
unsigned int x_shiftdown:1;
unsigned int x_selected:1;
unsigned int x_selected:2;
unsigned int x_finemoved:1;
unsigned int x_put_in2out:1;
unsigned int x_change:1;
......
Supports Markdown
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