X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2FLogicUIRenderer.java;h=7858a7040f34a4b79465d2dafb44eae077476093;hb=f14ea37d69488dd51518a36413af7176916b8bd7;hp=04d0f25143dde868dbc45c4b13ac244d35e13f5b;hpb=da7778598f9ee22fdf555189667fd373f3b779f6;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/LogicUIRenderer.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/LogicUIRenderer.java index 04d0f251..7858a704 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/LogicUIRenderer.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/LogicUIRenderer.java @@ -22,6 +22,7 @@ public class LogicUIRenderer public void render(GeneralGC gc, Rectangle visibleRegion) { + gc.setAntialias(SWT.ON); gc.setClipping(visibleRegion); gc.setLineWidth(.5); model.getWires().forEach(w -> @@ -44,7 +45,7 @@ public class LogicUIRenderer if (DRAW_PINS) { gc.setBackground(gc.getDevice().getSystemColor(SWT.COLOR_DARK_CYAN)); - for (Pin p : component.getPins()) + for (Pin p : component.getPins().values()) { Point pos = p.getPos(); gc.fillOval(pos.x - 1, pos.y - 1, 2, 2);