diff options
author | jfrijters <jfrijters> | 2012-07-31 07:34:03 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2012-07-31 07:34:03 +0400 |
commit | 91e71aca128e0e183c5dadd19ed350214d2192eb (patch) | |
tree | 8c0afdc42269cd818487267d98a71124c6f43876 /openjdk/java | |
parent | b0ef2c14914599b51126401c5db818b97bf68ffd (diff) |
Add support for running with headless awt toolkit. Fix for #3552089.
Diffstat (limited to 'openjdk/java')
-rw-r--r-- | openjdk/java/awt/image/BufferedImage.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openjdk/java/awt/image/BufferedImage.java b/openjdk/java/awt/image/BufferedImage.java index d122a5f4..6984f504 100644 --- a/openjdk/java/awt/image/BufferedImage.java +++ b/openjdk/java/awt/image/BufferedImage.java @@ -1281,7 +1281,7 @@ public class BufferedImage extends java.awt.Image * image. */ public Graphics2D createGraphics() { - ikvm.awt.IkvmToolkit toolkit = (ikvm.awt.IkvmToolkit)java.awt.Toolkit.getDefaultToolkit(); + ikvm.awt.IkvmToolkit toolkit = ikvm.awt.IkvmToolkit.DefaultToolkit.get(); raster2Bitmap(); this.currentBuffer = BUFFER_BITMAP; return toolkit.createGraphics( bitmap ); |