From 2005cba607270a0e176d739361cb6327fab061f7 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Wed, 26 Jul 2006 17:01:23 +0000 Subject: fixed coordinates for GOP svn path=/trunk/externals/unauthorized/; revision=5416 --- scrolllist/CHANGES.LOG | 2 ++ scrolllist/Makefile | 2 +- scrolllist/help-scrolllist.pd | 6 +++--- scrolllist/scrolllist.c | 7 +++---- 4 files changed, 9 insertions(+), 8 deletions(-) (limited to 'scrolllist') 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 -#include #else #include #include @@ -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) ); -- cgit v1.2.1