From cbb5e20166ec05d529f819e12e0727ca6ff1749a Mon Sep 17 00:00:00 2001 From: Scott Gilbertson Date: Thu, 23 Feb 2006 20:50:49 +0000 Subject: IntegerGraphicsState.java (getClip): Clone clip before returning, handle null clip. 2006-02-23 Scott Gilbertson * gnu/awt/j2d/IntegerGraphicsState.java (getClip): Clone clip before returning, handle null clip. (getClipBounds): Handle null clip. * gnu/awt/j2d/Graphics2DImpl.java (clipRect): Handle null clip. * gnu/awt/xlib/XCanvasPeer.java (): (getLocationOnScreen): Implement. * classpath/gnu/java/awt/peer/GLightweightPeer.java (repaint): Merged with Classpath. * classpath/java/awt/Graphics.java (hitClip): Merged with Classpath. From-SVN: r111395 --- libjava/classpath/java/awt/Graphics.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libjava/classpath/java/awt/Graphics.java') diff --git a/libjava/classpath/java/awt/Graphics.java b/libjava/classpath/java/awt/Graphics.java index a28ca7e428c..09bf7cacffa 100644 --- a/libjava/classpath/java/awt/Graphics.java +++ b/libjava/classpath/java/awt/Graphics.java @@ -617,6 +617,9 @@ public abstract class Graphics */ public boolean hitClip(int x, int y, int width, int height) { + Shape clip = getClip(); + if (clip == null) + return true; return getClip().intersects(x, y, width, height); } -- cgit v1.2.1