Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8300
Modified Files: Tag: impd_0_37 g_toggle.c Log Message: fixed toggle
Index: g_toggle.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/g_toggle.c,v retrieving revision 1.1.1.3.2.2.2.19 retrieving revision 1.1.1.3.2.2.2.20 diff -C2 -d -r1.1.1.3.2.2.2.19 -r1.1.1.3.2.2.2.20 *** g_toggle.c 4 May 2004 07:15:49 -0000 1.1.1.3.2.2.2.19 --- g_toggle.c 7 May 2004 19:04:16 -0000 1.1.1.3.2.2.2.20 *************** *** 100,104 ****
static void toggle_init(t_toggle *x, t_floatarg f) {x->x_gui.x_loadinit = !!f;} - static void toggle_nonzero(t_toggle *x, t_floatarg f) {if (f) x->x_nonzero = f;}
--- 100,103 ---- *************** *** 111,115 **** &x->x_gui.x_ldx,&x->x_gui.x_ldy,&y->x_font_style,&y->x_fontsize, &y->x_bcol,&y->x_fcol,&y->x_lcol,&x->x_on)) return; ! iem_inttosymargs(&x->x_gui, isa); y->x_h = y->x_w; x->x_on = y->x_loadinit && x->x_on ? x->x_nonzero : 0.0; --- 110,114 ---- &x->x_gui.x_ldx,&x->x_gui.x_ldy,&y->x_font_style,&y->x_fontsize, &y->x_bcol,&y->x_fcol,&y->x_lcol,&x->x_on)) return; ! iem_inttosymargs(y,isa); y->x_h = y->x_w; x->x_on = y->x_loadinit && x->x_on ? x->x_nonzero : 0.0; *************** *** 130,133 **** --- 129,133 ---- y->x_binbufindex = 2; x->x_on=0.0; + x->x_nonzero=1.0; outlet_new((t_text *)x, &s_float); toggle_reload(x,0,argc,argv);