From b57ce8677f3d5ed1c06bd6b46ab73551bbb2524c Mon Sep 17 00:00:00 2001 From: sgilbertson Date: Thu, 23 Feb 2006 20:50:49 +0000 Subject: 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111395 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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.3