From: Daniel Kirschten Date: Wed, 15 May 2019 08:52:56 +0000 (+0200) Subject: Fixed text centering being off 1.75px X-Git-Url: https://mograsim.net/gitweb/?a=commitdiff_plain;h=48db093ee4014bf9cc6c600a1a48e1e11ea6f5f7;p=Mograsim.git Fixed text centering being off 1.75px --- diff --git a/LogicUI/src/era/mi/components/gui/GUINotGate.java b/LogicUI/src/era/mi/components/gui/GUINotGate.java index a66c24d5..7af9a4b4 100644 --- a/LogicUI/src/era/mi/components/gui/GUINotGate.java +++ b/LogicUI/src/era/mi/components/gui/GUINotGate.java @@ -42,7 +42,7 @@ public class GUINotGate extends NotGate implements BasicGUIComponent Font labelFont = new Font(oldFont.getName(), 5, oldFont.getStyle()); gc.setFont(labelFont); Point textExtent = gc.textExtent(LABEL); - gc.drawText(LABEL, 10 - textExtent.x / 2, 5 - textExtent.y / 2, true); + gc.drawText(LABEL, 8.5 - textExtent.x / 2, 5 - textExtent.y / 2, true); gc.setFont(oldFont); gc.drawOval(17, 3.5, 3, 3); }