2003/12/28 08:42:56
authordavid <david@xwt.org>
Fri, 30 Jan 2004 07:43:24 +0000 (07:43 +0000)
committerdavid <david@xwt.org>
Fri, 30 Jan 2004 07:43:24 +0000 (07:43 +0000)
darcs-hash:20040130074324-0c9ea-6c8fa059264e7f152d6152a3ca3c6fb272dc44f8.gz

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) {