projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d317d5e
)
2003/12/28 08:42:56
author
david
<david@xwt.org>
Fri, 30 Jan 2004 07:43:24 +0000
(07:43 +0000)
committer
david
<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
patch
|
blob
|
history
diff --git
a/src/org/xwt/plat/AWT.java
b/src/org/xwt/plat/AWT.java
index
6a907e8
..
6843b12
100644
(file)
--- 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;
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) {
public AWTGlyph(org.xwt.Font f, char c) { super(f, c); }
Image getImage() {
if (i == null && isLoaded) {