aboutsummaryrefslogtreecommitdiff
path: root/src/breakpoints~.c
diff options
context:
space:
mode:
authorThomas O Fredericks <mrtof@users.sourceforge.net>2008-04-03 15:39:28 +0000
committerThomas O Fredericks <mrtof@users.sourceforge.net>2008-04-03 15:39:28 +0000
commit3adbad6f33d27d9004f699779ca99fe0bfa2c5de (patch)
treeed0041dfb810354a01c0ee01fc87826d826dad21 /src/breakpoints~.c
parent26e0d82e7c375ea0313c137f97fecfac84719b7b (diff)
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
Diffstat (limited to 'src/breakpoints~.c')
-rwxr-xr-xsrc/breakpoints~.c6
1 files changed, 4 insertions, 2 deletions
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;