X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fwires%2FWireConnectionPoint.java;h=8c2df1d518ccb3337458a42eb1123507e53fb16f;hb=c5217d7f47490bbb053bf13e94e7b5bc697e255c;hp=9c1aae1480ac72b1bd83618bf8adfc79fee47db4;hpb=d3a382377768fdb1434d5baebf73c9413e61e46f;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..8c2df1d5 100644 --- a/LogicUI/src/era/mi/gui/wires/WireConnectionPoint.java +++ b/LogicUI/src/era/mi/gui/wires/WireConnectionPoint.java @@ -23,9 +23,9 @@ public class WireConnectionPoint implements BasicGUIComponent public void render(GeneralGC gc) { Color oldBG = gc.getBackground(); - Color fg = gc.getForeground(); - gc.setBackground(fg); - gc.fillOval(-2, -2, 4, 4); + if(wa.length == 1) + gc.setBackground(gc.getDevice().getSystemColor(GUIWire.getSWTColorConstantForBit(wa.getValue()))); + gc.fillOval(-1, -1, 2, 2); gc.setBackground(oldBG); } @Override