diff options
author | Bryce McKinlay <bryce@albatross.co.nz> | 2001-02-15 04:36:34 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2001-02-15 04:36:34 +0000 |
commit | 2e22d9b885c204ce26b88733df88d9d22598734b (patch) | |
tree | e49f7765fd9d7fff4c654651347fe409b55beae5 /libjava/gnu | |
parent | 505ce70d3ff1a66b476ec41109deb68ac0d44fde (diff) | |
download | gcc-2e22d9b885c204ce26b88733df88d9d22598734b.tar.gz |
DirectRasterGraphics.java (clone): Hoist to public.
* gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
* gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
Rectangle.clone(), not Object.clone().
From-SVN: r39706
Diffstat (limited to 'libjava/gnu')
-rw-r--r-- | libjava/gnu/awt/j2d/DirectRasterGraphics.java | 2 | ||||
-rw-r--r-- | libjava/gnu/awt/j2d/IntegerGraphicsState.java | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/libjava/gnu/awt/j2d/DirectRasterGraphics.java b/libjava/gnu/awt/j2d/DirectRasterGraphics.java index 6bbdbd1d23e..8d25b88d018 100644 --- a/libjava/gnu/awt/j2d/DirectRasterGraphics.java +++ b/libjava/gnu/awt/j2d/DirectRasterGraphics.java @@ -79,4 +79,6 @@ public interface DirectRasterGraphics extends Cloneable * Detach previously mapped pixel data from a raster object. */ public void unmapRaster(MappedRaster mappedRaster); + + public Object clone(); } diff --git a/libjava/gnu/awt/j2d/IntegerGraphicsState.java b/libjava/gnu/awt/j2d/IntegerGraphicsState.java index 923720e06ae..90a1a4d2ab5 100644 --- a/libjava/gnu/awt/j2d/IntegerGraphicsState.java +++ b/libjava/gnu/awt/j2d/IntegerGraphicsState.java @@ -69,7 +69,6 @@ public class IntegerGraphicsState extends AbstractGraphicsState super.dispose(); } - // -------- Graphics methods: public void setColor(Color color) @@ -101,7 +100,7 @@ public class IntegerGraphicsState extends AbstractGraphicsState { if (clip instanceof Rectangle) { - Rectangle clipRect = (Rectangle) clip.clone(); + Rectangle clipRect = (Rectangle) ((Rectangle) clip).clone(); clipRect.x += tx; clipRect.y += ty; |