diff options
author | Miller Puckette <millerpuckette@users.sourceforge.net> | 2006-06-03 19:13:08 +0000 |
---|---|---|
committer | Miller Puckette <millerpuckette@users.sourceforge.net> | 2006-06-03 19:13:08 +0000 |
commit | beb2211b63b4b80ee07a807e5ffdd441aeea6354 (patch) | |
tree | 876eb052d5cec7755053328a470c75e0638b6b94 /pd/src/g_template.c | |
parent | eb976fa09171036cbaeaabf920708b2d39c49acc (diff) |
FFT package selection
Zmoelnig's multi-'$' patch
big-soundfile support
Patch to set open directories (openpanel, savepanel)
patch to allow funny characters in extern names
fixed makefile.in to support intel mac
svn path=/trunk/; revision=5164
Diffstat (limited to 'pd/src/g_template.c')
-rw-r--r-- | pd/src/g_template.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pd/src/g_template.c b/pd/src/g_template.c index 05cede66..b2b359d3 100644 --- a/pd/src/g_template.c +++ b/pd/src/g_template.c @@ -1082,6 +1082,7 @@ static void curve_activate(t_gobj *z, t_glist *glist, /* fill in later */ } +#if 0 static int rangecolor(int n) /* 0 to 9 in 5 steps */ { int n2 = n/2; /* 0 to 4 */ @@ -1089,6 +1090,15 @@ static int rangecolor(int n) /* 0 to 9 in 5 steps */ if (ret > 255) ret = 255; return (ret); } +#endif + +static int rangecolor(int n) /* 0 to 9 in 5 steps */ +{ + int n2 = (n == 9 ? 8 : n); /* 0 to 8 */ + int ret = (n2 << 5); /* 0 to 256 in 9 steps */ + if (ret > 255) ret = 255; + return (ret); +} static void numbertocolor(int n, char *s) { |