X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2FLogicUIStandalone.java;h=8bbfb1c50e3c147c2c910e58c0e8a91d0e913ad7;hb=50082bc2126d3f408acbdf4103bb4fdf29ac1d4f;hp=638ecf4ea2d6e179640ec502f23f1247c1d1c03d;hpb=0d509bfe3e0576ce146d222d57972ccbbc1d0972;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/LogicUIStandalone.java b/LogicUI/src/era/mi/gui/LogicUIStandalone.java index 638ecf4e..8bbfb1c5 100644 --- a/LogicUI/src/era/mi/gui/LogicUIStandalone.java +++ b/LogicUI/src/era/mi/gui/LogicUIStandalone.java @@ -30,7 +30,7 @@ public class LogicUIStandalone display = new Display(); shell = new Shell(display); shell.setLayout(new FillLayout()); - ui = new LogicUICanvas(shell, SWT.NONE); + ui = new LogicUICanvas(shell, SWT.NONE, model); ZoomableCanvasUserInput userInput = new ZoomableCanvasUserInput(ui); userInput.buttonDrag = 3; @@ -55,6 +55,7 @@ public class LogicUIStandalone // while (running.get()) // { // // always execute to keep timeline from "hanging behind" for too long +// timeline.executeUntil(timeline.laterThan(System.currentTimeMillis()), System.currentTimeMillis() + 10); // model.timeline.executeUpTo(System.currentTimeMillis(), System.currentTimeMillis() + 10); // long sleepTime; // if (model.timeline.hasNext())