[archstudio-commits] svn commit: r7133 - /calico/branches/mitchnick3/edu/umd/cs/piccolo/PNode.java

archstudio-commits-owner at uci.edu archstudio-commits-owner at uci.edu
Wed May 21 17:17:37 PDT 2008


Author: nmangano
Date: Wed May 21 17:17:37 2008
New Revision: 7133

Log:
Fixed bug that caused piccolo to throw tons of drawing errors that resulted=
 from fixing the blink bug. PNode made more thread tolerant when repainting.

Modified:
    calico/branches/mitchnick3/edu/umd/cs/piccolo/PNode.java

Modified: calico/branches/mitchnick3/edu/umd/cs/piccolo/PNode.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- calico/branches/mitchnick3/edu/umd/cs/piccolo/PNode.java (original)
+++ calico/branches/mitchnick3/edu/umd/cs/piccolo/PNode.java Wed May 21 17:=
17:37 2008
@@ -2299,11 +2299,12 @@
 			if (!getOccluded())
 				paint(paintContext);
 			=

-			int count =3D getChildrenCount();
-			for (int i =3D 0; i < count; i++) {
+			//Nick: changed to be more thread tolerant
+			//int count =3D getChildrenCount();
+			for (int i =3D 0; i < getChildrenCount(); i++) {
 				PNode each =3D (PNode) children.get(i);
 				each.fullPaint(paintContext);
-			}				=

+			}
 =

 			paintAfterChildren(paintContext);
 			=





More information about the archstudio-commits mailing list