[Gridflow-cvs] [svn] commit: r5004 - /trunk/src/classes2.cxx

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Mon Feb 8 21:31:50 EST 2010


Author: matju
Date: Mon Feb  8 21:31:50 2010
New Revision: 5004

Log:
add support for outlet 0 "position" "keypress" "keyrelease" in [#see].

Modified:
    trunk/src/classes2.cxx

Modified: trunk/src/classes2.cxx
==============================================================================
--- trunk/src/classes2.cxx (original)
+++ trunk/src/classes2.cxx Mon Feb  8 21:31:50 2010
@@ -613,9 +613,9 @@
 	}
 	~GridSee () {pd_free((t_pd *)spy);}
 	#undef FOO
-	#define FOO(A,B,C) y-=bself->te_ypix, x-=bself->te_xpix; \
-		if (!(y<0 && y>=sy && x<0 && x>=sx)) return; \
-		t_atom a[4]; SETFLOAT(a+0,y); SETFLOAT(a+1,x); SETFLOAT(a+2,flags); B; \
+	#define FOO(A,B,C) y-=bself->te_ypix+4; x-=bself->te_xpix+2; \
+		if (!(y>=0 && y<=sy-9 && x>=0 && x<=sx-5)) return; \
+		t_atom a[4]; SETFLOAT(a+0,y); SETFLOAT(a+1,x); SETFLOAT(a+2,flags); A; \
 		outlet_anything(outlets[0],gensym(B),C,a);
 	\decl 0 position   (int y, int x, int flags             ) {FOO(                ,"position",  3);}
 	\decl 0 keypress   (int y, int x, int flags, t_symbol *k) {FOO(SETSYMBOL(a+3,k),"keypress",  4);}



More information about the Gridflow-cvs mailing list