aboutsummaryrefslogtreecommitdiff
path: root/scrolllist
diff options
context:
space:
mode:
authorN.N. <sevyves@users.sourceforge.net>2006-07-26 17:01:23 +0000
committerN.N. <sevyves@users.sourceforge.net>2006-07-26 17:01:23 +0000
commit2005cba607270a0e176d739361cb6327fab061f7 (patch)
treecefe3df382f3217d55e6194da27d7ecaed8c39ec /scrolllist
parent8cb7fe69e2be0d5ed1811cda4a5ca4ed68046b55 (diff)
fixed coordinates for GOP
svn path=/trunk/externals/unauthorized/; revision=5416
Diffstat (limited to 'scrolllist')
-rwxr-xr-xscrolllist/CHANGES.LOG2
-rwxr-xr-xscrolllist/Makefile2
-rwxr-xr-xscrolllist/help-scrolllist.pd6
-rwxr-xr-xscrolllist/scrolllist.c7
4 files changed, 9 insertions, 8 deletions
diff --git a/scrolllist/CHANGES.LOG b/scrolllist/CHANGES.LOG
index f374175..ceb5041 100755
--- a/scrolllist/CHANGES.LOG
+++ b/scrolllist/CHANGES.LOG
@@ -1,2 +1,4 @@
+0.2
+ fixed coordinates for GOP support
0.1
initial version
diff --git a/scrolllist/Makefile b/scrolllist/Makefile
index a8624eb..cd6ae28 100755
--- a/scrolllist/Makefile
+++ b/scrolllist/Makefile
@@ -29,7 +29,7 @@ pd_linux: $(NAME).pd_linux
LINUXCFLAGS = -DPD -DUNIX -O2 -funroll-loops -fomit-frame-pointer \
-Wall -W -Wno-shadow -Wstrict-prototypes \
- -Wno-unused -Wno-parentheses -Wno-switch -Werror -g
+ -Wno-unused -Wno-parentheses -Wno-switch -g
.c.pd_linux:
./tk2c.bash < $*.tk > $*.tk2c
diff --git a/scrolllist/help-scrolllist.pd b/scrolllist/help-scrolllist.pd
index 6563f16..160370d 100755
--- a/scrolllist/help-scrolllist.pd
+++ b/scrolllist/help-scrolllist.pd
@@ -50,11 +50,11 @@
#X msg 620 270 rewind;
#X obj 527 269 l2s;
#X msg 525 236 add \$1;
-#X obj 748 216 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
+#X obj 748 216 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X obj 747 237 metro 1000;
-#X obj 35 222 scrolllist 25 400 200 {Helvetica 12 normal} black green
-#904562;
+#X obj 35 222 scrolllist 25 400 200 {Courier 12 bold} black green #904562
+;
#X text 470 343 the mouse in the text area;
#X msg 33 57 clear;
#X text 79 57 clear all;
diff --git a/scrolllist/scrolllist.c b/scrolllist/scrolllist.c
index f1ccc84..deed3cd 100755
--- a/scrolllist/scrolllist.c
+++ b/scrolllist/scrolllist.c
@@ -41,9 +41,8 @@
#include "g_canvas.h"
#include "t_tk.h"
-#ifdef _WIN32
+#ifdef NT
#include <io.h>
-#include <pthread.h>
#else
#include <unistd.h>
#include <sys/types.h>
@@ -55,7 +54,7 @@ static t_class *scrolllist_class;
static int guidebug=0;
-static char *scrolllist_version = "scrolllist: scrolling list of text items : version 0.1, written by Yves Degoyon (ydegoyon@free.fr)";
+static char *scrolllist_version = "scrolllist: scrolling list of text items : version 0.2, written by Yves Degoyon (ydegoyon@free.fr)";
#define MIN(a,b) (a>b?b:a)
@@ -280,7 +279,7 @@ static void scrolllist_save(t_gobj *z, t_binbuf *b)
// post( "saving scrolllist : %d", x->x_capacity );
binbuf_addv(b, "ssiisiiissss", gensym("#X"), gensym("obj"),
- (t_int)text_xpix(&x->x_obj, x->x_glist), (t_int)text_ypix(&x->x_obj, x->x_glist),
+ (t_int)x->x_obj.te_xpix, (t_int)x->x_obj.te_ypix,
gensym("scrolllist"), x->x_capacity, x->x_width, x->x_height,
gensym(x->x_font), gensym(x->x_bgcolor),
gensym(x->x_fgcolor), gensym(x->x_secolor) );