From 24a6b1d7aced3e2da8a4c26dfa844a6eaaf4632e Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 3 Sep 2025 14:26:21 +0200 Subject: add ui to packages and format code --- go/ui/button.go | 1 - 1 file changed, 1 deletion(-) (limited to 'go/ui/button.go') diff --git a/go/ui/button.go b/go/ui/button.go index 6e8fd8b7..5bda91aa 100644 --- a/go/ui/button.go +++ b/go/ui/button.go @@ -51,7 +51,6 @@ func NewRoundSimpleButton(x, y, r int, label string, onClick func(b *SimpleButto } func (b *SimpleButton) drawLabel(img *ebiten.Image) { - w, h := text.Measure(b.label, b.font, b.font.Size*b.lineSpacing) x := float64(b.Width)/2 - w/2 y := float64(b.Height)/2 - h/2 -- cgit v1.2.3