WireConnectionPoints now have the same color as the wire they belong to
[Mograsim.git] / LogicUI / src / era / mi / gui / wires / WireConnectionPoint.java
index e993c93..c3bbab7 100644 (file)
@@ -23,8 +23,8 @@ public class WireConnectionPoint implements BasicGUIComponent
        public void render(GeneralGC gc)\r
        {\r
                Color oldBG = gc.getBackground();\r
-               Color fg = gc.getForeground();\r
-               gc.setBackground(fg);\r
+               if(wa.length == 1)\r
+                       gc.setBackground(gc.getDevice().getSystemColor(GUIWire.getSWTColorConstantForBit(wa.getValue())));\r
                gc.fillOval(-2, -2, 4, 4);\r
                gc.setBackground(oldBG);\r
        }\r