aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/awt/geom/Rectangle2D.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/awt/geom/Rectangle2D.java')
-rw-r--r--libjava/java/awt/geom/Rectangle2D.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/libjava/java/awt/geom/Rectangle2D.java b/libjava/java/awt/geom/Rectangle2D.java
index e63e1ba..8203ca3 100644
--- a/libjava/java/awt/geom/Rectangle2D.java
+++ b/libjava/java/awt/geom/Rectangle2D.java
@@ -399,7 +399,13 @@ public abstract class Rectangle2D extends RectangularShape
public int getWindingRule()
{
- return WIND_EVEN_ODD;
+ // A test program showed that Sun J2SE 1.3.1 and 1.4.1_01
+ // return WIND_NON_ZERO paths. While this does not really
+ // make any difference for rectangles (because they are not
+ // self-intersecting), it seems appropriate to behave
+ // identically.
+
+ return WIND_NON_ZERO;
}
public boolean isDone()