From 720f3ab88e73f338bd9eb3546afd9596670fc166 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 30 Jan 2004 07:43:24 +0000 Subject: [PATCH] 2003/12/28 08:42:56 darcs-hash:20040130074324-0c9ea-6c8fa059264e7f152d6152a3ca3c6fb272dc44f8.gz --- src/org/xwt/plat/AWT.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/org/xwt/plat/AWT.java b/src/org/xwt/plat/AWT.java index 6a907e8..6843b12 100644 --- a/src/org/xwt/plat/AWT.java +++ b/src/org/xwt/plat/AWT.java @@ -117,7 +117,13 @@ public class AWT extends JVM { protected org.xwt.Font.Glyph _createGlyph(org.xwt.Font f, char c) { return new AWTGlyph(f, c); } protected static class AWTGlyph extends org.xwt.Font.Glyph { private Image i = null; - static ColorModel cmodel = new DirectColorModel(8, 0x00000000, 0x00000000, 0x00000000, 0xFF); + static final ColorModel cmodel = new ColorModel(8) { + public int getRed(int p) { return 0; } + public int getGreen(int p) { return 0; } + public int getBlue(int p) { return 0; } + public int getAlpha(int p) { return p & 0xFF; } + }; + public AWTGlyph(org.xwt.Font f, char c) { super(f, c); } Image getImage() { if (i == null && isLoaded) { -- 1.7.10.4