X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fmodel%2Fwires%2FWireCrossPoint.java;h=c54cdd9b73f5c480b743152916f02331526be4d9;hb=8e290cad73b372b954f7677f2287c6a9eb9a6313;hp=ebe30c3033fb5e602671882d11f892932708b3e6;hpb=e618fa725540dd5f92ccf0ed7d65acdc8eb83f93;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/model/wires/WireCrossPoint.java b/LogicUI/src/era/mi/gui/model/wires/WireCrossPoint.java index ebe30c30..c54cdd9b 100644 --- a/LogicUI/src/era/mi/gui/model/wires/WireCrossPoint.java +++ b/LogicUI/src/era/mi/gui/model/wires/WireCrossPoint.java @@ -12,11 +12,11 @@ public class WireCrossPoint extends GUIComponent { private ReadEnd end; - public WireCrossPoint(ViewModel model) + public WireCrossPoint(ViewModel model, int logicWidth) { super(model); setSize(0, 0); - addPin(new Pin(this, 0, 0)); + addPin(new Pin(this, logicWidth, 0, 0)); } @Override @@ -28,6 +28,6 @@ public class WireCrossPoint extends GUIComponent public void setLogicModelBinding(ReadEnd end) { this.end = end; - end.addObserver((i, o) -> callComponentChangedListeners()); + end.addObserver((i, o) -> callComponentLookChangedListeners()); } } \ No newline at end of file