[PD-cvs] externals/hcs colorpanel.c,1.1,1.2

Hans-Christoph Steiner eighthave at users.sourceforge.net
Mon Nov 5 07:53:15 CET 2007


Update of /cvsroot/pure-data/externals/hcs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1268

Modified Files:
	colorpanel.c 
Log Message:
put tk_chooseColor back in place after global search and replace object renaming fucked it up

Index: colorpanel.c
===================================================================
RCS file: /cvsroot/pure-data/externals/hcs/colorpanel.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** colorpanel.c	31 Oct 2007 01:35:24 -0000	1.1
--- colorpanel.c	5 Nov 2007 06:53:13 -0000	1.2
***************
*** 4,7 ****
--- 4,9 ----
  #include <m_pd.h>
  
+ #define DEBUG(x)
+ 
  static t_class *colorpanel_class;
  
***************
*** 15,21 ****
  static void colorpanel_bang(t_colorpanel *x)
  {
!     post("pd [concat %s callback [tk_colorpanel -initialcolor %s] \\;]\n", 
!              x->x_s->s_name, x->current_color);
!     sys_vgui("pd [concat %s callback [tk_colorpanel -initialcolor %s] \\;]\n", 
               x->x_s->s_name, x->current_color);
  }
--- 17,23 ----
  static void colorpanel_bang(t_colorpanel *x)
  {
!     DEBUG(post("pd [concat %s callback [tk_chooseColor -initialcolor %s] \\;]\n", 
!                x->x_s->s_name, x->current_color););
!     sys_vgui("pd [concat %s callback [tk_chooseColor -initialcolor %s] \\;]\n", 
               x->x_s->s_name, x->current_color);
  }
***************
*** 23,27 ****
  static void colorpanel_symbol(t_colorpanel *x, t_symbol *s)
  {
!     post("setting initial color: %s", s->s_name);
      strncpy(x->current_color, s->s_name, MAXPDSTRING);
      colorpanel_bang(x);
--- 25,29 ----
  static void colorpanel_symbol(t_colorpanel *x, t_symbol *s)
  {
!     DEBUG(post("setting initial color: %s", s->s_name););
      strncpy(x->current_color, s->s_name, MAXPDSTRING);
      colorpanel_bang(x);
***************
*** 53,57 ****
      }
      memcpy(x->current_color, color_string, 7);
!     post("setting initial color: %s", x->current_color);
      colorpanel_bang(x);
  }
--- 55,59 ----
      }
      memcpy(x->current_color, color_string, 7);
!     DEBUG(post("setting initial color: %s", x->current_color););
      colorpanel_bang(x);
  }
***************
*** 64,71 ****
      if(color != &s_)
      {
-         post("callback color: %s", color->s_name);
          strncpy(x->current_color, color->s_name, MAXPDSTRING);
          sscanf(x->current_color, "#%02x%02x%02x", &red, &green, &blue);
-         post("current color: %s", x->current_color);
          SETFLOAT(output_atoms, (t_float) red / 255);
          SETFLOAT(output_atoms + 1, (t_float) green / 255);
--- 66,71 ----





More information about the Pd-cvs mailing list