Skip to content
Snippets Groups Projects
Commit a3db8525 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*more regressions from the refactoring

parent 404aa555
No related branches found
No related tags found
No related merge requests found
...@@ -368,7 +368,7 @@ static void *bng_new(t_symbol *s, int argc, t_atom *argv) ...@@ -368,7 +368,7 @@ static void *bng_new(t_symbol *s, int argc, t_atom *argv)
x->x_gui. x_handle = scalehandle_new((t_object *)x,x->x_gui.x_glist,1,bng__clickhook,bng__motionhook); x->x_gui. x_handle = scalehandle_new((t_object *)x,x->x_gui.x_glist,1,bng__clickhook,bng__motionhook);
x->x_gui.x_lhandle = scalehandle_new((t_object *)x,x->x_gui.x_glist,0,bng__clickhook,bng__motionhook); x->x_gui.x_lhandle = scalehandle_new((t_object *)x,x->x_gui.x_glist,0,bng__clickhook,bng__motionhook);
x->x_gui.x_obj.te_iemgui = 1; x->x_gui.x_obj.te_iemgui = 1;
x->x_gui.x_changed = 0; x->x_gui.x_changed = -1;
return (x); return (x);
} }
......
...@@ -378,7 +378,9 @@ static int radio_newclick(t_gobj *z, struct _glist *glist, int xpix, int ypix, ...@@ -378,7 +378,9 @@ static int radio_newclick(t_gobj *z, struct _glist *glist, int xpix, int ypix,
static void radio_loadbang(t_radio *x) static void radio_loadbang(t_radio *x)
{ {
if(!sys_noloadbang && x->x_gui.x_loadinit) if(!sys_noloadbang && x->x_gui.x_loadinit)
{
radio_bang(x); radio_bang(x);
}
} }
static void radio_number(t_radio *x, t_floatarg num) static void radio_number(t_radio *x, t_floatarg num)
...@@ -438,7 +440,7 @@ static void *radio_new(t_symbol *s, int argc, t_atom *argv) ...@@ -438,7 +440,7 @@ static void *radio_new(t_symbol *s, int argc, t_atom *argv)
bflcol[0] = atom_getintarg(11, argc, argv); bflcol[0] = atom_getintarg(11, argc, argv);
bflcol[1] = atom_getintarg(12, argc, argv); bflcol[1] = atom_getintarg(12, argc, argv);
bflcol[2] = atom_getintarg(13, argc, argv); bflcol[2] = atom_getintarg(13, argc, argv);
on = mini(maxi(atom_getintarg(14, argc, argv),0),x->x_number-1); on = mini(maxi(atom_getintarg(14, argc, argv),0),num-1);
} }
else iemgui_new_getnames(&x->x_gui, 4, 0); else iemgui_new_getnames(&x->x_gui, 4, 0);
x->x_gui.x_draw = (t_iemfunptr)radio_draw; x->x_gui.x_draw = (t_iemfunptr)radio_draw;
...@@ -446,7 +448,7 @@ static void *radio_new(t_symbol *s, int argc, t_atom *argv) ...@@ -446,7 +448,7 @@ static void *radio_new(t_symbol *s, int argc, t_atom *argv)
if (x->x_gui.x_font_style<0 || x->x_gui.x_font_style>2) x->x_gui.x_font_style=0; if (x->x_gui.x_font_style<0 || x->x_gui.x_font_style>2) x->x_gui.x_font_style=0;
x->x_number = num; x->x_number = num;
x->x_on = x->x_gui.x_loadinit ? on : 0; x->x_on = x->x_gui.x_loadinit ? on : 0;
x->x_on_old = x->x_on; x->x_on_old = -1;
x->x_change = (chg==0)?0:1; x->x_change = (chg==0)?0:1;
if (iemgui_has_rcv(&x->x_gui)) if (iemgui_has_rcv(&x->x_gui))
pd_bind(&x->x_gui.x_obj.ob_pd, x->x_gui.x_rcv); pd_bind(&x->x_gui.x_obj.ob_pd, x->x_gui.x_rcv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment