Comment #1 on issue 112 by mr0...@mro.name: OSX: "Error: custom stroke not  
implemented"
http://code.google.com/p/piccolo2d/issues/detail?id=112

proposed fix:

### Eclipse Workspace Patch 1.0
#P phtml
Index: core/src/main/java/edu/umd/cs/piccolo/nodes/PPath.java
===================================================================
--- core/src/main/java/edu/umd/cs/piccolo/nodes/PPath.java      (revision 610)
+++ core/src/main/java/edu/umd/cs/piccolo/nodes/PPath.java      (working copy)
@@ -311,8 +311,13 @@

          if (stroke != null && strokePaint != null) {
              g2.setPaint(strokePaint);
-            g2.setStroke(stroke);
-            g2.draw(path);
+            if (!(stroke instanceof BasicStroke) && "Apple
Inc.".equals(System.getProperty("java.vm.vendor"))) {
+                g2.fill(stroke.createStrokedShape(path));
+            }
+            else {
+                g2.setStroke(stroke);
+                g2.draw(path);
+            }
          }
      }


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to