diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-19 19:54:39 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-19 19:54:39 +0000 |
| commit | 509516ee0bc69746dfe948f0fffeb786816d7db2 (patch) | |
| tree | 904af78e7c2b08b109cc574a36927a487d9db2f5 /libjava/gnu/gcj/xlib/Pixmap.java | |
| parent | ece594685232a960ae2dc73b1cbdc8d1d59d09a3 (diff) | |
| download | ppe42-gcc-509516ee0bc69746dfe948f0fffeb786816d7db2.tar.gz ppe42-gcc-509516ee0bc69746dfe948f0fffeb786816d7db2.zip | |
2003-04-19 Scott Gilbertson <scottg@mantatest.com>
* gnu/awt/xlib/XGraphics.java (XGraphics): Use new GC.create.
(dispose): Null metrics.
* gnu/awt/xlib/XToolkit.java (sync): Implement.
* gnu/gcj/xlib/Clip.java (dispose): Change name of native from
finalize.
(finalize): Call dispose.
* gnu/gcj/xlib/Drawable.java (gcCache): New field.
(gcCachedCount): New field.
(finalize): New method.
(putGCInCache): New method.
(getGCFromCache): New method.
* gnu/gcj/xlib/GC.java (GC): Make protected.
(clone): Get new GC from cache if possible.
(create): New static method.
(dispose): Save old GC in cache.
* gnu/gcj/xlib/natClip.cc (dispose): Check for null before
deleting.
* gnu/gcj/xlib/natGC.cc (initStructure): Call XCreateGC only if gc
is null.
* gnu/gcj/xlib/Pixmap.java (Pixmap): Use new GC.create.
* java/awt/Container.java (visitChild): Dispose gfx2 when
finished.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65827 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/gcj/xlib/Pixmap.java')
| -rw-r--r-- | libjava/gnu/gcj/xlib/Pixmap.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/gnu/gcj/xlib/Pixmap.java b/libjava/gnu/gcj/xlib/Pixmap.java index a514d95d52b..7ba5a62f993 100644 --- a/libjava/gnu/gcj/xlib/Pixmap.java +++ b/libjava/gnu/gcj/xlib/Pixmap.java @@ -25,7 +25,7 @@ public class Pixmap extends Drawable /* FIXME: don't create a new GC all the time. This might actually not be as bad as initially believed. The GC cache of Xlib makes this operation less costly. */ - GC gc = new GC(this); + GC gc = GC.create (this); gc.putImage(image, 0, 0, 0, 0, image.getWidth(), image.getHeight()); } |

