summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/java
diff options
context:
space:
mode:
authorsgilbertson <sgilbertson@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-23 20:50:49 +0000
committersgilbertson <sgilbertson@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-23 20:50:49 +0000
commitb57ce8677f3d5ed1c06bd6b46ab73551bbb2524c (patch)
treee7dbeee69e81b207b0965b99b096bca140842b68 /libjava/classpath/java
parentcba69f27f2606ddbda337fca0bb957fe1904e4d0 (diff)
downloadppe42-gcc-b57ce8677f3d5ed1c06bd6b46ab73551bbb2524c.tar.gz
ppe42-gcc-b57ce8677f3d5ed1c06bd6b46ab73551bbb2524c.zip
2006-02-23 Scott Gilbertson <scottg@mantatest.com>
* 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
Diffstat (limited to 'libjava/classpath/java')
-rw-r--r--libjava/classpath/java/awt/Graphics.java3
1 files changed, 3 insertions, 0 deletions
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);
}
OpenPOWER on IntegriCloud