aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/java/awt
diff options
context:
space:
mode:
authorScott Gilbertson <scottg@mantatest.com>2006-02-23 20:50:49 +0000
committerScott Gilbertson <sgilbertson@gcc.gnu.org>2006-02-23 20:50:49 +0000
commitcbb5e20166ec05d529f819e12e0727ca6ff1749a (patch)
treee7dbeee69e81b207b0965b99b096bca140842b68 /libjava/classpath/java/awt
parent072b06f2dce99ea6fe42d7ec20ab152019c5f40b (diff)
downloadgcc-cbb5e20166ec05d529f819e12e0727ca6ff1749a.zip
gcc-cbb5e20166ec05d529f819e12e0727ca6ff1749a.tar.gz
gcc-cbb5e20166ec05d529f819e12e0727ca6ff1749a.tar.bz2
IntegerGraphicsState.java (getClip): Clone clip before returning, handle null clip.
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. From-SVN: r111395
Diffstat (limited to 'libjava/classpath/java/awt')
-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 a28ca7e..09bf7ca 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);
}