From 01dd6be6dbca72eefe5f42fe40b14a7af6c962e2 Mon Sep 17 00:00:00 2001 From: Daniel Kirschten Date: Thu, 16 May 2019 10:55:56 +0200 Subject: [PATCH] Removed drawing of connection points --- LogicUI/src/era/mi/gui/examples/LogicUI.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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) { -- 2.17.1