X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fmodel%2FLogicUICanvas.java;h=11e46345bdcf0c20047de1066dae1cf6cbc88bb8;hb=e8e95e2e345f4d9c5927aa78f5c0fb607d352a97;hp=2c82d133a205fd11d2ddaef7c2c0171309096bce;hpb=a36b5eded424a8c480140e9ce853145c2bcc9d7e;p=Mograsim.git diff --git a/net.mograsim.logic.model/src/net/mograsim/logic/model/LogicUICanvas.java b/net.mograsim.logic.model/src/net/mograsim/logic/model/LogicUICanvas.java index 2c82d133..11e46345 100644 --- a/net.mograsim.logic.model/src/net/mograsim/logic/model/LogicUICanvas.java +++ b/net.mograsim.logic.model/src/net/mograsim/logic/model/LogicUICanvas.java @@ -53,7 +53,7 @@ public class LogicUICanvas extends ZoomableCanvas setBackground(background);// this.setBackground, not gc.setBackground to have the background fill the canvas renderer.render(gc, new Rectangle(-offX / zoom, -offY / zoom, gW / zoom, gH / zoom)); }); - model.addRedrawListener(this::redrawThreadsafe); + model.setRedrawHandler(this::redrawThreadsafe); addListener(SWT.MouseDown, this::mouseDown);