diff options
| author | Mario Torre <neugens@limasoftware.net> | 2008-05-07 14:21:57 +0000 |
|---|---|---|
| committer | Mario Torre <neugens@limasoftware.net> | 2008-05-07 14:21:57 +0000 |
| commit | 13809b05ad9c542eae3af83d671996fb0415bfae (patch) | |
| tree | bac0d94bb7a2d0234774dfb787e26673d630562e /gnu/java/awt/peer/x/XGraphics2D.java | |
| parent | 485d2c4f9dd73e2193c1c40d6f0972a798521a7a (diff) | |
| download | classpath-13809b05ad9c542eae3af83d671996fb0415bfae.tar.gz | |
2008-05-07 Mario Torre <neugens@aicas.com>
* gnu/java/awt/peer/x/XEventPump.java (handleEvent): xEvent.code is now
masked to identify and react to syntetic events.
Added UnmapNotify, DestroyNotify and ClientMessage to the list of event
handled.
* gnu/java/awt/peer/x/XFramePeer.java (getState): initial implementation.
* gnu/java/awt/peer/x/XGraphics2D.java (setPaint): fix NPE, this is a
workaround, the code have to be fixed in a better way.
* gnu/java/awt/peer/x/XWindowPeer.java (getXwindow): new method to allow
access to the underling xwindow.
(standardSelect): add more events for notification.
(XWindowPeer): call set_wm_delete_window to ask the WM to notify us
when a delete event occur.
Diffstat (limited to 'gnu/java/awt/peer/x/XGraphics2D.java')
| -rw-r--r-- | gnu/java/awt/peer/x/XGraphics2D.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/java/awt/peer/x/XGraphics2D.java b/gnu/java/awt/peer/x/XGraphics2D.java index 95129666a..68a176f21 100644 --- a/gnu/java/awt/peer/x/XGraphics2D.java +++ b/gnu/java/awt/peer/x/XGraphics2D.java @@ -313,7 +313,7 @@ public class XGraphics2D { // TODO: Optimize for different standard bit-depths. Color c = (Color) p; - XToolkit tk = (XToolkit) Toolkit.getDefaultToolkit(); + /* XToolkit tk = (XToolkit) Toolkit.getDefaultToolkit(); HashMap colorMap = tk.colorMap; gnu.x11.Color col = (gnu.x11.Color) colorMap.get(c); if (col == null) @@ -323,8 +323,10 @@ public class XGraphics2D c.getGreen() * 256, c.getBlue() * 256); colorMap.put(c, col); - } - xgc.set_foreground(col); + }*/ + //xgc.set_foreground(col); + + xgc.set_foreground(c.getRGB()); foreground = c; } } |
