From 3adbad6f33d27d9004f699779ca99fe0bfa2c5de Mon Sep 17 00:00:00 2001 From: Thomas O Fredericks Date: Thu, 3 Apr 2008 15:39:28 +0000 Subject: Added banging to phasorshot~ even when not looping AND modified w_breakpoints behavior in regard to it's default range svn path=/trunk/externals/tof/; revision=9677 --- src/breakpoints~.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/breakpoints~.c') diff --git a/src/breakpoints~.c b/src/breakpoints~.c index b7135b2..3ac2000 100755 --- a/src/breakpoints~.c +++ b/src/breakpoints~.c @@ -193,12 +193,13 @@ void breakpoints_init(t_breakpoints *x,int argc,t_atom* argv) } - if ( x->max == x->min ) { + if ( x->max == x->min ) { if ( x->max == 0 ) { x->max = 1; } else { if (x->max > 0) { x->min = 0; + if (x->max < 1) x->max =1; } else { x->max = 0; } @@ -456,7 +457,8 @@ void breakpoints_tilde_setup(void) breakpoints_widgetbehavior.w_getrectfn = breakpoints_getrect; breakpoints_widgetbehavior.w_displacefn = breakpoints_displace; breakpoints_widgetbehavior.w_selectfn = breakpoints_select; - breakpoints_widgetbehavior.w_activatefn = breakpoints_activate; + //breakpoints_widgetbehavior.w_activatefn = breakpoints_activate; + breakpoints_widgetbehavior.w_activatefn = NULL; breakpoints_widgetbehavior.w_deletefn = breakpoints_delete; breakpoints_widgetbehavior.w_visfn = breakpoints_vis; breakpoints_widgetbehavior.w_clickfn = (t_clickfn) breakpoints_newclick; -- cgit v1.2.1