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

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sun Nov 8 18:42:06 EST 2009


Author: matju
Date: Sun Nov  8 18:42:06 2009
New Revision: 4792

Log:
fixed yet another gop bug

Modified:
    trunk/src/classes2.cxx

Modified: trunk/src/classes2.cxx
==============================================================================
--- trunk/src/classes2.cxx (original)
+++ trunk/src/classes2.cxx Sun Nov  8 18:42:06 2009
@@ -356,6 +356,7 @@
 		SETPOINTER(a,(t_gpointer *)bself);
 		pd_typedmess(gp,gensym("dest"),1,a);
 		clock = clock_new((void *)this,(void(*)())display_update);
+ 		clock_delay(clock,0);
 	}
 	~Display () {
 		pd_unbind((t_pd *)bself,rsym);
@@ -386,10 +387,11 @@
 	}
 };
 #define INIT BFObject *bself = (BFObject*)x; Display *self = (Display *)bself->self;
-#define L if(0) post("%s",__PRETTY_FUNCTION__);
+#define L if(1) post("%s",__PRETTY_FUNCTION__);
 static void display_getrectfn(t_gobj *x, t_glist *glist, int *x1, int *y1, int *x2, int *y2) {INIT
 	*x1 = bself->te_xpix-1; *x2 = bself->te_xpix+1+self->sx;
 	*y1 = bself->te_ypix-1; *y2 = bself->te_ypix+1+self->sy;
+	post("getrect: (%d %d %d %d)",*x1,*y1,*x2,*y2);
 }
 static void display_displacefn(t_gobj *x, t_glist *glist, int dx, int dy) {INIT L
 	bself->te_xpix+=dx; bself->te_ypix+=dy; self->show();
@@ -410,7 +412,7 @@
 #undef INIT
 static void display_update(void *x) {L
 	Display *self = (Display *)x;
-	if (self->vis) self->show();
+	self->show();
 }
 \def 0 set_size(int sy, int sx) {this->sy=sy; this->sx=sx;}
 \def void anything (...) {



More information about the Gridflow-cvs mailing list