aboutsummaryrefslogtreecommitdiff
path: root/go/ui/button.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/ui/button.go')
-rw-r--r--go/ui/button.go1
1 files changed, 0 insertions, 1 deletions
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