Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17174
Modified Files: Tag: impd_0_37 g_all_guis.c g_numbox.c Log Message: .
Index: g_numbox.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/g_numbox.c,v retrieving revision 1.1.1.4.2.2.2.29 retrieving revision 1.1.1.4.2.2.2.30 diff -C2 -d -r1.1.1.4.2.2.2.29 -r1.1.1.4.2.2.2.30 *** g_numbox.c 13 Aug 2004 16:58:50 -0000 1.1.1.4.2.2.2.29 --- g_numbox.c 13 Aug 2004 18:22:15 -0000 1.1.1.4.2.2.2.30 *************** *** 36,39 **** --- 36,40 ---- int w = x->x_gui.x_fontsize * f * x->x_gui.x_w / 36; x->x_numwidth = w + 4 + x->x_gui.x_h/2; + post("nbx calc_fontwidth: f=%d w=%d numwidth=%d",f,w,x->x_numwidth); }
*************** *** 167,170 **** --- 168,172 ---- outlet_new((t_text *)x, &s_float); nbx_reload(x,0,argc,argv); + nbx_calc_fontwidth(x); return x; }
Index: g_all_guis.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/g_all_guis.c,v retrieving revision 1.1.1.4.2.4.2.41 retrieving revision 1.1.1.4.2.4.2.42 diff -C2 -d -r1.1.1.4.2.4.2.41 -r1.1.1.4.2.4.2.42 *** g_all_guis.c 13 Aug 2004 16:23:33 -0000 1.1.1.4.2.4.2.41 --- g_all_guis.c 13 Aug 2004 18:22:15 -0000 1.1.1.4.2.4.2.42 *************** *** 298,308 **** canvas_savecontainerto((t_canvas *)c,buf); } - // binbuf_gettext(buf,&s,&n); - // post("%.*s",n,s); binbuf_gettext(buf,&s,&n); sys_vgui("update_object %x {%.*s}\n", /*c->c_wb==&text_widgetbehavior ? rtext_gettag(glist_findrtext(can,(t_text *)self)) :*/ ! (unsigned)self,n-1,s); binbuf_free(buf); free(s); --- 298,306 ---- canvas_savecontainerto((t_canvas *)c,buf); } binbuf_gettext(buf,&s,&n); sys_vgui("update_object %x {%.*s}\n", /*c->c_wb==&text_widgetbehavior ? rtext_gettag(glist_findrtext(can,(t_text *)self)) :*/ ! (unsigned)self,n,s); binbuf_free(buf); free(s); *************** *** 377,384 **** EXTERN void iemgui_draw(t_iemgui *self, t_glist *glist, int mode) { //fprintf(stderr,"self=%08x, self->te_binbuf=%08x\n",self,self->x_obj.te_binbuf); ! if (!self->x_obj.te_binbuf) { pd_error(self,"trying to upload without binbuf"); return; } pd_upload((t_gobj *)self,glist); //if (!glist_isvisible(glist_getcanvas(glist))) return; /* <-- doesn't really work */ --- 375,383 ---- EXTERN void iemgui_draw(t_iemgui *self, t_glist *glist, int mode) { //fprintf(stderr,"self=%08x, self->te_binbuf=%08x\n",self,self->x_obj.te_binbuf); ! /* if (!self->x_obj.te_binbuf) { pd_error(self,"trying to upload without binbuf"); return; } + */ pd_upload((t_gobj *)self,glist); //if (!glist_isvisible(glist_getcanvas(glist))) return; /* <-- doesn't really work */