projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WireConnectionPoints now have the same color as the wire they belong to
[Mograsim.git]
/
LogicUI
/
src
/
era
/
mi
/
gui
/
wires
/
WireConnectionPoint.java
diff --git
a/LogicUI/src/era/mi/gui/wires/WireConnectionPoint.java
b/LogicUI/src/era/mi/gui/wires/WireConnectionPoint.java
index
9c1aae1
..
6c585a4
100644
(file)
--- 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();
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);
}
gc.fillOval(-2, -2, 4, 4);
gc.setBackground(oldBG);
}