2003/12/28 08:42:56
[org.ibex.core.git] / src / org / xwt / plat / AWT.java
index 6a907e8..6843b12 100644 (file)
@@ -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) {