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

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Thu Feb 25 00:22:33 EST 2010


Author: matju
Date: Thu Feb 25 00:22:32 2010
New Revision: 5056

Log:
event window was 1px too big in width and height

Modified:
    trunk/src/classes2.cxx

Modified: trunk/src/classes2.cxx
==============================================================================
--- trunk/src/classes2.cxx (original)
+++ trunk/src/classes2.cxx Thu Feb 25 00:22:32 2010
@@ -617,7 +617,7 @@
 	#define FOO(A,B,C) t_canvas *can = mom; /* and not glist_getcanvas(mom) */ \
 		post("can=%p text_ypix=%d text_xpix=%d",can,text_ypix(bself,can),text_xpix(bself,can)); \
 		y-=text_ypix(bself,can)+4; x-=text_xpix(bself,can)+2; \
-		if (!(y>=0 && y<=sy-9 && x>=0 && x<=sx-5)) return; \
+		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);}



More information about the Gridflow-cvs mailing list