From 74af030fe030fa578cb84d9822d26c6be5e222e2 Mon Sep 17 00:00:00 2001 From: hneemann Date: Wed, 20 Jan 2021 16:57:27 +0100 Subject: [PATCH] modifies the generic init code shape --- .../neemann/digital/draw/shapes/GenericInitCodeShape.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/neemann/digital/draw/shapes/GenericInitCodeShape.java b/src/main/java/de/neemann/digital/draw/shapes/GenericInitCodeShape.java index 194ec64e9..de199dfcd 100644 --- a/src/main/java/de/neemann/digital/draw/shapes/GenericInitCodeShape.java +++ b/src/main/java/de/neemann/digital/draw/shapes/GenericInitCodeShape.java @@ -52,8 +52,8 @@ public void drawTo(Graphic graphic, Style highLight) { if (!graphic.isFlagSet(Graphic.Flag.hideTest)) { Polygon pol = new Polygon(true) .add(SIZE2, SIZE2) - .add(SIZE2 + SIZE * 6, SIZE2) - .add(SIZE2 + SIZE * 6, SIZE * 2 + SIZE2) + .add(SIZE2 + SIZE * 4, SIZE2) + .add(SIZE2 + SIZE * 4, SIZE * 2 + SIZE2) .add(SIZE2, SIZE * 2 + SIZE2); Style textStyle = NORMAL; if (enabled) { @@ -64,8 +64,8 @@ public void drawTo(Graphic graphic, Style highLight) { textStyle = DISABLED; } - graphic.drawText(new Vector(SIZE2 + SIZE * 3, SIZE + SIZE2), "generic", Orientation.CENTERCENTER, textStyle); - graphic.drawText(new Vector(SIZE2 + SIZE * 3, 0), label, Orientation.CENTERBOTTOM, textStyle); + graphic.drawText(new Vector(SIZE2 + SIZE * 2, SIZE + SIZE2), "init", Orientation.CENTERCENTER, textStyle); + graphic.drawText(new Vector(SIZE2 + SIZE * 2, 0), label, Orientation.CENTERBOTTOM, textStyle); } } }