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
This commit is contained in:
Scott Gilbertson 2006-02-23 20:50:49 +00:00 committed by Scott Gilbertson
parent 072b06f2dc
commit cbb5e20166
6 changed files with 37 additions and 4 deletions

View file

@ -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);
}