Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18241
Modified Files: Tag: desiredata desire.c Log Message: fix for changing between [hradio] and [vradio] and such
Index: desire.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v retrieving revision 1.1.2.217.2.79 retrieving revision 1.1.2.217.2.80 diff -C2 -d -r1.1.2.217.2.79 -r1.1.2.217.2.80 *** desire.c 19 Dec 2006 06:15:09 -0000 1.1.2.217.2.79 --- desire.c 19 Dec 2006 16:49:01 -0000 1.1.2.217.2.80 *************** *** 6794,6798 **** static void radio_float(t_radio *x, t_floatarg f) {radio_fout2(x,f,1);} static void radio_loadbang(t_radio *x) {if(iemgui_loadbang(x)) radio_bang(x);} ! static void radio_orient(t_radio *x,t_floatarg v) {SET(orient,!!v);}
static void radio_number(t_radio *x, t_floatarg num) { --- 6794,6799 ---- static void radio_float(t_radio *x, t_floatarg f) {radio_fout2(x,f,1);} static void radio_loadbang(t_radio *x) {if(iemgui_loadbang(x)) radio_bang(x);} ! static void radio_orient(t_radio *x,t_floatarg v) {SET(orient,!!v); ! post("v=%f, !!v=%d, orient=%d",v,!!v,x->orient);}
static void radio_number(t_radio *x, t_floatarg num) { *************** *** 6825,6828 **** --- 6826,6830 ---- static void radio_savefn(t_radio *x, t_binbuf *b) { t_foo foo = {0,0,b}; if (!b) return; + post("orient=%d oldstyle=%d",x->orient,x->oldstyle); pd_savehead(b,x,radio_flavor(x)->s_name); radio_pickle(x,&foo); *************** *** 6844,6851 **** SET(number,8); SET(change,1); ! if (s==sym_hdl) {SET(orient,0); SET(oldstyle,0);} else ! if (s==sym_vdl) {SET(orient,1); SET(oldstyle,0);} else ! if (s==sym_hradio) {SET(orient,0); SET(oldstyle,1);} else ! if (s==sym_vradio) {SET(orient,1); SET(oldstyle,1);} SET(on,x->isa&1 ? x->on : 0); SET(on_old,x->on); --- 6846,6853 ---- SET(number,8); SET(change,1); ! if (s==sym_hdl) {SET(orient,0); SET(oldstyle,1);} else ! if (s==sym_vdl) {SET(orient,1); SET(oldstyle,1);} else ! if (s==sym_hradio) {SET(orient,0); SET(oldstyle,0);} else ! if (s==sym_vradio) {SET(orient,1); SET(oldstyle,0);} SET(on,x->isa&1 ? x->on : 0); SET(on_old,x->on); *************** *** 7614,7618 **** class_addmethod3(c,radio_fout, "fout","f"); class_addmethod3(c,radio_number, "number","f"); ! class_addmethod3(c,slider_orient,"orient","f"); class_addmethod3(c,radio_single_change, "single_change",""); class_addmethod3(c,radio_double_change, "double_change",""); --- 7616,7620 ---- class_addmethod3(c,radio_fout, "fout","f"); class_addmethod3(c,radio_number, "number","f"); ! class_addmethod3(c,radio_orient,"orient","f"); class_addmethod3(c,radio_single_change, "single_change",""); class_addmethod3(c,radio_double_change, "double_change","");