[PD-cvs] externals/iem/iemgui/src iem_vu.c,1.2,1.3

musil tmusil at users.sourceforge.net
Fri Feb 9 10:44:09 CET 2007


Update of /cvsroot/pure-data/externals/iem/iemgui/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11660/iem/iemgui/src

Modified Files:
	iem_vu.c 
Log Message:
put in the condition
if(glist_isvisible(x->x_gui.x_glist))
for drawing

Index: iem_vu.c
===================================================================
RCS file: /cvsroot/pure-data/externals/iem/iemgui/src/iem_vu.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** iem_vu.c	14 Dec 2006 20:34:27 -0000	1.2
--- iem_vu.c	9 Feb 2007 09:44:06 -0000	1.3
***************
*** 167,174 ****
    cvec[7] = 0;
    
!   sys_vgui("%xBKGDIMAGE_PROTO put {%s} -to 0 0\n", x, x->x_bkgd_gif_bord);
!   sys_vgui("%xBKGDIMAGE_PROTO put {%s} -to 1 0\n", x, x->x_bkgd_gif_cent);
!   sys_vgui("%xBKGDIMAGE_PROTO put {%s} -to 2 0\n", x, x->x_bkgd_gif_cent);
!   sys_vgui("%xBKGDIMAGE_PROTO put {%s} -to 3 0\n", x, x->x_bkgd_gif_bord);
  }
  
--- 167,177 ----
    cvec[7] = 0;
    
!   if(glist_isvisible(x->x_gui.x_glist))
!   {
!     sys_vgui("%xBKGDIMAGE_PROTO put {%s} -to 0 0\n", x, x->x_bkgd_gif_bord);
!     sys_vgui("%xBKGDIMAGE_PROTO put {%s} -to 1 0\n", x, x->x_bkgd_gif_cent);
!     sys_vgui("%xBKGDIMAGE_PROTO put {%s} -to 2 0\n", x, x->x_bkgd_gif_cent);
!     sys_vgui("%xBKGDIMAGE_PROTO put {%s} -to 3 0\n", x, x->x_bkgd_gif_bord);
!   }
  }
  
***************
*** 308,332 ****
    t_canvas *canvas=glist_getcanvas(glist);
    
!   iem_vu_change_bkgd_col(x);
!   if(x->x_gui.x_w != x->x_old_width)
    {
!     x->x_old_width = x->x_gui.x_w;
!     sys_vgui("%xBKGDIMAGE blank\n", x);
!     sys_vgui("%xBKGDIMAGE configure -width %d -height %d\n",
!       x, x->x_gui.x_w, x->x_gui.x_h+3);
    }
-   sys_vgui("%xBKGDIMAGE copy %xBKGDIMAGE_PROTO -zoom %d 1\n", x, x, zoom);
-   
-   my_iemgui_change_scale_col(x->x_scale_gif, x->x_gui.x_lcol);
-   sys_vgui("%xSCALEIMAGE configure -data {%s}\n", x, x->x_scale_gif);
-   
-   sys_vgui(".x%x.c itemconfigure %xLABEL -font {%s %d bold} -fill #%6.6x -text {%s} \n",
-     canvas, x, x->x_gui.x_font, x->x_gui.x_fontsize,
-     x->x_gui.x_fsf.x_selected?IEM_GUI_COLOR_SELECTED:x->x_gui.x_lcol,
-     strcmp(x->x_gui.x_lab->s_name, "empty")?x->x_gui.x_lab->s_name:"");
-   
-   sys_vgui(".x%x.c itemconfigure %xRCOVER -fill #%6.6x -outline #%6.6x\n",
-     canvas, x, x->x_gui.x_bcol, x->x_gui.x_bcol);
-   sys_vgui(".x%x.c itemconfigure %xPLED -width %d\n", canvas, x, 2);
  }
  
--- 311,338 ----
    t_canvas *canvas=glist_getcanvas(glist);
    
!   if(glist_isvisible(glist))
    {
!     iem_vu_change_bkgd_col(x);
!     if(x->x_gui.x_w != x->x_old_width)
!     {
!       x->x_old_width = x->x_gui.x_w;
!       sys_vgui("%xBKGDIMAGE blank\n", x);
!       sys_vgui("%xBKGDIMAGE configure -width %d -height %d\n",
!         x, x->x_gui.x_w, x->x_gui.x_h+3);
!     }
!     sys_vgui("%xBKGDIMAGE copy %xBKGDIMAGE_PROTO -zoom %d 1\n", x, x, zoom);
!     
!     my_iemgui_change_scale_col(x->x_scale_gif, x->x_gui.x_lcol);
!     sys_vgui("%xSCALEIMAGE configure -data {%s}\n", x, x->x_scale_gif);
!     
!     sys_vgui(".x%x.c itemconfigure %xLABEL -font {%s %d bold} -fill #%6.6x -text {%s} \n",
!       canvas, x, x->x_gui.x_font, x->x_gui.x_fontsize,
!       x->x_gui.x_fsf.x_selected?IEM_GUI_COLOR_SELECTED:x->x_gui.x_lcol,
!       strcmp(x->x_gui.x_lab->s_name, "empty")?x->x_gui.x_lab->s_name:"");
!     
!     sys_vgui(".x%x.c itemconfigure %xRCOVER -fill #%6.6x -outline #%6.6x\n",
!       canvas, x, x->x_gui.x_bcol, x->x_gui.x_bcol);
!     sys_vgui(".x%x.c itemconfigure %xPLED -width %d\n", canvas, x, 2);
    }
  }
  





More information about the Pd-cvs mailing list