diff options
Diffstat (limited to 'libjava/classpath')
-rw-r--r-- | libjava/classpath/gnu/java/awt/peer/GLightweightPeer.java | 7 | ||||
-rw-r--r-- | libjava/classpath/java/awt/Graphics.java | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/libjava/classpath/gnu/java/awt/peer/GLightweightPeer.java b/libjava/classpath/gnu/java/awt/peer/GLightweightPeer.java index 5252e80f1e0..25735bb745f 100644 --- a/libjava/classpath/gnu/java/awt/peer/GLightweightPeer.java +++ b/libjava/classpath/gnu/java/awt/peer/GLightweightPeer.java @@ -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() {} 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); } |