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

@ -227,7 +227,12 @@ public class GLightweightPeer
public void print(Graphics graphics) {}
public void repaint(long tm, int x, int y, int width, int height) {}
public void repaint(long tm, int x, int y, int width, int height)
{
Component p = comp.getParent ();
if(p != null)
p.repaint(tm,x+comp.getX(),y+comp.getY(),width,height);
}
public void requestFocus() {}