X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fwires%2FWireConnectionPoint.java;fp=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fwires%2FWireConnectionPoint.java;h=6c585a47dcd16e7a1c7b4b7e641f0a1304f1a9a9;hb=16322f272d5a7e16980ede3481f2a1c9d271e5df;hp=9c1aae1480ac72b1bd83618bf8adfc79fee47db4;hpb=2ab9aca886504ee2612ba4a025e9ded69f535c74;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/wires/WireConnectionPoint.java b/LogicUI/src/era/mi/gui/wires/WireConnectionPoint.java index 9c1aae14..6c585a47 100644 --- a/LogicUI/src/era/mi/gui/wires/WireConnectionPoint.java +++ b/LogicUI/src/era/mi/gui/wires/WireConnectionPoint.java @@ -23,8 +23,8 @@ public class WireConnectionPoint implements BasicGUIComponent public void render(GeneralGC gc) { Color oldBG = gc.getBackground(); - Color fg = gc.getForeground(); - gc.setBackground(fg); + if(wa.length == 1) + gc.setBackground(gc.getDevice().getSystemColor(GUIWire.getSWTColorConstantForBit(wa.getValue()))); gc.fillOval(-2, -2, 4, 4); gc.setBackground(oldBG); }