From: Daniel Kirschten Date: Thu, 16 May 2019 08:55:56 +0000 (+0200) Subject: Removed drawing of connection points X-Git-Url: https://mograsim.net/gitweb/?a=commitdiff_plain;ds=inline;h=01dd6be6dbca72eefe5f42fe40b14a7af6c962e2;p=Mograsim.git Removed drawing of connection points --- diff --git a/LogicUI/src/era/mi/gui/examples/LogicUI.java b/LogicUI/src/era/mi/gui/examples/LogicUI.java index 1c39c7c8..765c3c25 100644 --- a/LogicUI/src/era/mi/gui/examples/LogicUI.java +++ b/LogicUI/src/era/mi/gui/examples/LogicUI.java @@ -104,15 +104,7 @@ public class LogicUI } private void drawComponent(GeneralGC gc, BasicGUIComponent component) { - TranslatedGC tgc = new TranslatedGC(gc, componentPositions.get(component)); - component.render(tgc); - tgc.setBackground(display.getSystemColor(SWT.COLOR_BLUE)); - for(int i = 0; i < component.getConnectedWireArraysCount(); i ++) - { - Point connectionPoint = component.getWireArrayConnectionPoint(i); - if(connectionPoint != null) - tgc.fillOval(connectionPoint.x - 1, connectionPoint.y - 1, 2, 2); - } + component.render(new TranslatedGC(gc, componentPositions.get(component))); } private void mouseDown(Event e) {