From c71752c241a0bf67543ecb2849298f24be4d4340 Mon Sep 17 00:00:00 2001 From: Daniel Kirschten Date: Wed, 5 Jun 2019 18:41:47 +0200 Subject: [PATCH] Sped up GUImux1 rendering --- .../ui/model/components/mi/nandbased/GUImux1.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1.java index 3bd6d237..056b6966 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1.java @@ -15,7 +15,6 @@ public class GUImux1 extends SimpleRectangularSubmodelComponent super(model, 1, "GUImux1"); setSize(80, 40); setSubmodelScale(.4); - setInputCount(3); setOutputCount(1); initSubmodelComponents(); @@ -45,17 +44,17 @@ public class GUImux1 extends SimpleRectangularSubmodelComponent cp0.moveTo(5, 12.5); cp1.moveTo(5, 22.5); - new GUIWire(submodelModifiable, S0, cp0); - new GUIWire(submodelModifiable, cp0, nandS0.getInputPins().get(0)); - new GUIWire(submodelModifiable, cp0, cp1); - new GUIWire(submodelModifiable, cp1, nandS0.getInputPins().get(1)); + new GUIWire(submodelModifiable, S0, cp0, new Point[0]); + new GUIWire(submodelModifiable, cp0, nandS0.getInputPins().get(0), new Point[0]); + new GUIWire(submodelModifiable, cp0, cp1, new Point[0]); + new GUIWire(submodelModifiable, cp1, nandS0.getInputPins().get(1), new Point[0]); new GUIWire(submodelModifiable, nandS0.getOutputPin(), nandI0.getInputPins().get(0)); - new GUIWire(submodelModifiable, I0, nandI0.getInputPins().get(1)); + new GUIWire(submodelModifiable, I0, nandI0.getInputPins().get(1), new Point[0]); new GUIWire(submodelModifiable, cp1, nandI1.getInputPins().get(0), new Point(cp1.getPin().getPos().x, nandI1.getInputPins().get(0).getPos().y)); - new GUIWire(submodelModifiable, I1, nandI1.getInputPins().get(1)); + new GUIWire(submodelModifiable, I1, nandI1.getInputPins().get(1), new Point[0]); new GUIWire(submodelModifiable, nandI0.getOutputPin(), nandY.getInputPins().get(0)); new GUIWire(submodelModifiable, nandI1.getOutputPin(), nandY.getInputPins().get(1)); -- 2.17.1