Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv563
Modified Files: Tag: impd_0_37 g_all_guis.h g_vumeter.c Log Message: [vu] bugfix
Index: g_all_guis.h =================================================================== RCS file: /cvsroot/pure-data/pd/src/g_all_guis.h,v retrieving revision 1.1.1.4.2.2.2.35 retrieving revision 1.1.1.4.2.2.2.36 diff -C2 -d -r1.1.1.4.2.2.2.35 -r1.1.1.4.2.2.2.36 *** g_all_guis.h 13 Aug 2004 16:12:53 -0000 1.1.1.4.2.2.2.35 --- g_all_guis.h 13 Aug 2004 16:56:26 -0000 1.1.1.4.2.2.2.36 *************** *** 74,78 **** int x_vis_w; int x_vis_h; ! } t_my_canvas;
typedef struct _dropper --- 74,78 ---- int x_vis_w; int x_vis_h; ! } t_my_canvas, t_cnv;
typedef struct _dropper *************** *** 96,100 **** } t_vu;
! typedef struct _my_numbox { t_iemgui x_gui; --- 96,100 ---- } t_vu;
! typedef struct _nbx /* Number2 */ { t_iemgui x_gui; *************** *** 111,115 **** int x_change; int x_is_log; ! } t_my_numbox;
EXTERN int sys_noloadbang; --- 111,115 ---- int x_change; int x_is_log; ! } t_my_numbox, t_nbx;
EXTERN int sys_noloadbang;
Index: g_vumeter.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/g_vumeter.c,v retrieving revision 1.1.1.3.2.2.2.23 retrieving revision 1.1.1.3.2.2.2.24 diff -C2 -d -r1.1.1.3.2.2.2.23 -r1.1.1.3.2.2.2.24 *** g_vumeter.c 13 May 2004 14:37:20 -0000 1.1.1.3.2.2.2.23 --- g_vumeter.c 13 Aug 2004 16:56:26 -0000 1.1.1.3.2.2.2.24 *************** *** 91,94 **** --- 91,103 ---- }
+ static void vu_save(t_vu *x, t_binbuf *b) { + t_iemgui *y = (t_iemgui *)x; + if (!b) return; + pd_savehead(b, y, "vu"); + pd_saveargs(b,"iiaaiiiiccb;i", + &y->x_w,&y->x_h,&y->x_rcv,&y->x_lab,&y->x_ldx,&y->x_ldy,&y->x_font_style,&y->x_fontsize, + &y->x_bcol,&y->x_lcol,&x->x_scale,&y->x_isa); + } + static void vu_reload(t_vu *x, t_symbol *s, int argc, t_atom *argv) { *************** *** 145,148 **** --- 154,158 ---- wb.w_clickfn = NULL; class_setwidget(c,&wb); + class_setsavefn(c,vu_save); class_sethelpsymbol(c, gensym("vu")); }